11 lines
855 B
Plaintext
11 lines
855 B
Plaintext
FROM alpine
|
|
ENV container docker
|
|
RUN apk update; apk upgrade; apk add php7-gd php7-session php7-json php7-fpm php7-mysqlnd php7-mysqli php7-mbstring php7-xml php7-redis php7-curl php7-gmp bash php7-pdo_mysql php7-zip php7-dom php7-xmlwriter php7-xmlreader php7-ctype php7-simplexml php7-intl php7-iconv redis supervisor php7-opcache php7-posix php7-fileinfo php7-pecl-imagick php7-bcmath php7-pcntl php7-cli
|
|
COPY supervisord.conf /etc/supervisord.conf
|
|
COPY fpm-www.conf /etc/php7/php-fpm.d/www.conf
|
|
RUN sed -i -e 's/^disable_functions.*/disable_functions=exec,passthru,shell_exec,system,proc_open,popen,curl_exec,curl_multi_exec,eval,base64_decode/g' /etc/php7/php.ini
|
|
RUN sed -i -e 's/^expose_php.*/expose_php=off/g' /etc/php7/php.ini
|
|
RUN sed -i -e 's/^memory_limit.*/memory_limit=512M/g' /etc/php7/php.ini
|
|
EXPOSE 9000
|
|
CMD ["/usr/bin/supervisord", "-n"]
|