-
Notifications
You must be signed in to change notification settings - Fork 9
/
Dockerfile
58 lines (45 loc) · 1.93 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
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
FROM php:7.1.20-fpm-stretch
MAINTAINER Ivan Klimchuk <[email protected]> (@alroniks)
RUN usermod -u 1000 www-data
RUN usermod -G staff www-data
RUN apt-get update && apt-get install -y libpng-dev libjpeg-dev libpq-dev zip unzip sudo wget sqlite3 libsqlite3-dev && rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure gd --with-png-dir=/usr --with-jpeg-dir=/usr
RUN docker-php-ext-configure pdo_mysql --with-pdo-mysql=mysqlnd
RUN docker-php-ext-configure pgsql -with-pgsql=/usr/local/pgsql
RUN docker-php-ext-configure mysqli --with-mysqli=mysqlnd
RUN yes | pecl install igbinary redis
RUN docker-php-ext-install pdo && \
docker-php-ext-install pdo_mysql && \
docker-php-ext-install mysqli && \
docker-php-ext-install pgsql && \
docker-php-ext-install pdo_pgsql && \
docker-php-ext-install pdo_sqlite && \
docker-php-ext-install gd && \
docker-php-ext-install mbstring && \
docker-php-ext-install opcache && \
docker-php-ext-install zip && \
docker-php-ext-install calendar && \
docker-php-ext-enable igbinary && \
docker-php-ext-enable redis
RUN { \
echo 'opcache.memory_consumption=128'; \
echo 'opcache.interned_strings_buffer=8'; \
echo 'opcache.max_accelerated_files=4000'; \
echo 'opcache.revalidate_freq=2'; \
echo 'opcache.fast_shutdown=1'; \
echo 'opcache.enable_cli=1'; \
echo 'opcache.load_comments=1'; \
} >> /usr/local/etc/php/conf.d/docker-php-ext-opcache.ini
VOLUME /var/www/html
ENV TAO_VERSION 3.1.0-RC7_build
ENV TAO_SHA1 9d2de63a9a63538ae1ebe57b0d6023759cb08041
RUN curl -o tao.zip -SL http://releases.taotesting.com/TAO_${TAO_VERSION}.zip \
&& echo "$TAO_SHA1 *tao.zip" | sha1sum -c - \
&& unzip -qq tao.zip -d /usr/src \
&& mv /usr/src/TAO_${TAO_VERSION} /usr/src/tao \
&& rm tao.zip \
&& chown -R www-data:www-data /usr/src/tao
COPY docker-entrypoint.sh /entrypoint.sh
COPY php.ini /usr/local/etc/php/
ENTRYPOINT ["/entrypoint.sh"]
CMD ["php-fpm"]