alpine-php8-webserver (latest)

Published 2025-02-28 15:41:35 +01:00 by holzi1005

Installation

docker pull git.h2-invent.com/public-system-design/alpine-php8-webserver:latest
sha256:ca719e8cef3b2cec8982303ac586ae6baa899e7aa1952c190893f0743bbd8f10

Image layers

ADD alpine-minirootfs-3.20.6-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
LABEL Maintainer=Andreas Holzmann <support@h2-invent.com> Description=Lightweight container with Nginx & PHP-FPM based on Alpine Linux.
RUN /bin/sh -c apk --no-cache add php83 php83-ctype php83-curl php83-dom php83-exif php83-fileinfo php83-fpm php83-gd php83-iconv php83-intl php83-json php83-mbstring php83-mysqli php83-opcache php83-openssl php83-pecl-apcu php83-pdo php83-pdo_mysql php83-pgsql php83-phar php83-session php83-simplexml php83-soap php83-sodium php83-tokenizer php83-xml php83-xmlreader php83-xmlwriter php83-zip php83-zlib php83-xsl php83-pcntl php83-posix php83-sockets nginx runit curl && apk add --no-cache --virtual .gettext gettext && mv /usr/bin/envsubst /tmp/ && runDeps="$( scanelf --needed --nobanner /tmp/envsubst | awk '{ gsub(/,/, "\nso:", $2); print "so:" $2 }' | sort -u | xargs -r apk info --installed | sort -u )" && apk add --no-cache $runDeps && apk del .gettext && mv /tmp/envsubst /usr/local/bin/ && rm -rf /var/cache/apk/* && rm /etc/nginx/http.d/default.conf && mkdir -p /run /var/lib/nginx /var/www/html /var/log/nginx && chown -R nobody:nobody /run /var/lib/nginx /var/www/html /var/log/nginx # buildkit
COPY rootfs/ / # buildkit
USER nobody
WORKDIR /var/www/html
EXPOSE map[8080/tcp:{}]
ENTRYPOINT ["/bin/docker-entrypoint.sh"]
HEALTHCHECK &{["CMD-SHELL" "curl --silent --fail http://127.0.0.1:8080/fpm-ping || exit 1"] "0s" "10s" "0s" '\x00'}
ENV nginx_root_directory=/var/www/html/public nginx_fastcgi_read_timeout=100 client_max_body_size=2M clear_env=no pm_mode=dynamic pm_start_servers=20 pm_min_spare_servers=10 pm_max_spare_servers=20 pm_max_requests=1000 allow_url_fopen=On allow_url_include=Off display_errors=Off file_uploads=On max_execution_time=0 max_input_time=-1 max_input_vars=1000 memory_limit=128M post_max_size=8M upload_max_filesize=2M zlib_output_compression=On date_timezone=Europe/Berlin intl_default_locale=de_DE

Labels

Key Value
Description Lightweight container with Nginx & PHP-FPM based on Alpine Linux.
Maintainer Andreas Holzmann <support@h2-invent.com>
Details
Container
2025-02-28 15:41:35 +01:00
0
OCI / Docker
linux/amd64
25 MiB
Versions (4) View all
latest 2025-02-28
3.20.8 2025-02-28
3.20.7 2025-02-02
3.20.6 2024-12-07