2024-04-04 12:39:43 +08:00
|
|
|
FROM alpine:latest
|
2022-01-17 15:56:05 +08:00
|
|
|
ENV container docker
|
2024-09-24 19:49:15 +08:00
|
|
|
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
|
2022-01-17 15:56:05 +08:00
|
|
|
COPY supervisord.conf /etc/supervisord.conf
|
2024-09-24 19:49:15 +08:00
|
|
|
COPY fpm-www.conf /etc/php83/php-fpm.d/www.conf
|
2024-04-04 12:39:43 +08:00
|
|
|
COPY nc-upgrade.sh /var/www/nc-upgrade.sh
|
2024-09-24 19:49:15 +08:00
|
|
|
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
|
2022-01-17 15:56:05 +08:00
|
|
|
EXPOSE 9000
|
|
|
|
CMD ["/usr/bin/supervisord", "-n"]
|