10 lines
945 B
Docker
10 lines
945 B
Docker
|
FROM alpine:latest
|
||
|
ENV container docker
|
||
|
RUN apk update; apk upgrade; apk add php8-gd php8-session php8-json php8-fpm php8-mysqlnd php8-mysqli php8-mbstring php8-xml php8-redis php8-curl php8-gmp bash php8-pdo_mysql php8-zip php8-dom php8-xmlwriter php8-xmlreader php8-ctype php8-simplexml php8-intl php8-iconv redis supervisor php8-opcache php8-posix php8-fileinfo php8-pecl-imagick php8-bcmath php8-pcntl php8-cli
|
||
|
COPY supervisord.conf /etc/supervisord.conf
|
||
|
COPY fpm-www.conf /etc/php8/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' -e 's/^expose_php.*/expose_php=off/g' -e 's/^memory_limit.*/memory_limit=512M/g' -e 's/^session.save_handler.*/session.save_handler=redis/g' /etc/php8/php.ini
|
||
|
RUN echo 'session.save_path = "tcp://192.168.86.212:6379"' >> /etc/php8/php.ini
|
||
|
EXPOSE 9000
|
||
|
CMD ["/usr/bin/supervisord", "-n"]
|