FROM alpine:latest ENV container docker RUN apk update; apk upgrade; apk add php83-gd php83-session php83-json php83-fpm php83-mysqlnd php83-mysqli php83-mbstring php83-xml php83-redis php83-curl php83-gmp bash php83-pdo_mysql php83-zip php83-dom php83-xmlwriter php83-xmlreader php83-ctype php83-simplexml php83-intl php83-iconv supervisor php83-opcache php83-posix php83-fileinfo php83-pecl-imagick php83-bcmath php83-pcntl php83-cli php83-sysvsem php83-exif php83-sodium php83-bz2 COPY supervisord.conf /etc/supervisord.conf COPY fpm-www.conf /etc/php83/php-fpm.d/www.conf COPY nc-upgrade.sh /var/www/nc-upgrade.sh COPY php.ini /etc/php83/php.ini # 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/php83/php.ini RUN echo 'session.save_path = "tcp://192.168.86.212:6379"' >> /etc/php83/php.ini EXPOSE 9000 CMD ["/usr/bin/supervisord", "-n"]