| ADD alpine-minirootfs-3.21.4-aarch64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| LABEL Description=Lightweight container with Nginx 1.26 & PHP 8.4 based on Alpine Linux. |
| WORKDIR /var/www/html |
| RUN /bin/sh -c apk add --no-cache curl nginx php84 php84-bcmath php84-ctype php84-curl php84-dom php84-fileinfo php84-fpm php84-gd php84-intl php84-mbstring php84-mysqli php84-opcache php84-openssl php84-phar php84-session php84-tokenizer php84-xml php84-xmlreader php84-xmlwriter php84-pdo php84-pdo_mysql php84-pecl-xdebug php84-zip supervisor # buildkit |
| RUN /bin/sh -c ln -s /usr/bin/php84 /usr/bin/php # buildkit |
| COPY config/nginx.conf /etc/nginx/nginx.conf # buildkit |
| COPY config/conf.d /etc/nginx/conf.d/ # buildkit |
| ENV PHP_INI_DIR=/etc/php84 |
| COPY config/fpm-pool.conf /etc/php84/php-fpm.d/www.conf # buildkit |
| COPY config/php.ini /etc/php84/conf.d/custom.ini # buildkit |
| COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf # buildkit |
| RUN /bin/sh -c chown -R nobody:nobody /var/www/html /run /var/lib/nginx /var/log/nginx # buildkit |
| EXPOSE map[8080/tcp:{}] |
| USER nobody |
| RUN /bin/sh -c mkdir -p /var/www/html/logs && chown -R nobody:nobody /var/www/html/logs # buildkit |
| VOLUME [/var/www/html/logs] |
| CMD ["/usr/bin/supervisord" "-c" "/etc/supervisor/conf.d/supervisord.conf"] |
| HEALTHCHECK &{["CMD-SHELL" "curl --silent --fail http://127.0.0.1:8080/fpm-ping || exit 1"] "0s" "10s" "0s" "0s" '\x00'} |