forked from go-faustino/sentrifugo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
30 lines (30 loc) · 1.12 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM php:7.1.12-apache
COPY /php/php.ini /usr/local/etc/php/
COPY /. /var/www/html/
RUN apt-get update && apt-get install -y \
libfreetype6-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libxml2-dev \
apache2-dev \
libssl-dev \
libcurl4-gnutls-dev \
libedit-dev \
librecode-dev \
zlib1g-dev \
&& docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
&& docker-php-ext-install -j$(nproc) gd \
&& docker-php-ext-configure calendar --enable-calendar \
&& docker-php-ext-install calendar \
&& docker-php-ext-configure pdo_mysql --with-pdo-mysql \
&& docker-php-ext-install pdo_mysql \
&& docker-php-ext-configure readline --with-readline \
&& docker-php-ext-install readline \
&& docker-php-ext-configure recode --with-recode \
&& docker-php-ext-install recode \
&& docker-php-ext-configure pdo_mysql --with-pdo-mysql \
&& docker-php-ext-install pdo_mysql \
&& docker-php-ext-configure zip --enable-zip \
&& docker-php-ext-install zip
RUN a2enmod rewrite