forked from louisbl/docker-php
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
59 lines (55 loc) · 1.33 KB
/
Dockerfile
File metadata and controls
59 lines (55 loc) · 1.33 KB
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM php:5.6-apache
MAINTAINER ozconseil <dev@ozconseil.com>
RUN a2enmod expires
RUN a2enmod headers
RUN a2enmod rewrite
RUN apt-get update && apt-get install -y \
curl \
g++ \
imagemagick \
libbz2-dev \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng-dev \
libpq-dev \
libxml2-dev \
libxslt1-dev \
libzip-dev \
nano \
mysql-client \
openssl \
unzip \
wget \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure gd --with-jpeg-dir --with-freetype-dir \
&& docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd \
&& docker-php-ext-install -j$(nproc) \
bcmath \
bz2 \
gd \
exif \
intl \
json \
mbstring \
mcrypt \
mysqli \
mysql \
opcache \
pdo_mysql \
xmlrpc \
xsl \
zip
# set recommended PHP.ini settings
# see https://secure.php.net/manual/en/opcache.installation.php
RUN { \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=60'; \
echo 'opcache.fast_shutdown=1'; \
echo 'opcache.enable_cli=0'; \
} > /usr/local/etc/php/conf.d/opcache-recommended.ini
RUN echo "date.timezone = \"Europe/Paris\"" > /usr/local/etc/php/conf.d/timezone.ini