Zdeněk Zenkl zdenek
  • Joined on 2024-12-10

docker-php-alpine (0.1.0)

Published 2025-08-30 20:14:46 +02:00 by zdenek in zdenek/docker-php-alpine

Installation

docker pull git.najihu.net/zdenek/docker-php-alpine:0.1.0
sha256:47f31f4ed80012709f403bae4442e3d712af648acc69ae1b428a80ae281b364a

Image Layers

ADD alpine-minirootfs-3.22.1-x86_64.tar.gz / # buildkit
CMD ["/bin/sh"]
RUN /bin/sh -c set -eux; apk add --no-cache apache2 apache2-proxy php84 php84-fpm php84-opcache php84-session php84-mysqli php84-pdo php84-pdo_mysql php84-ctype php84-tokenizer php84-xml php84-gd php84-curl php84-mbstring tzdata curl; mkdir -p /run/apache2 /run/php /var/www/html; sed -ri 's|^[#[:space:]]*ErrorLog .*|ErrorLog /dev/stderr|g' /etc/apache2/httpd.conf; sed -ri 's|^[#[:space:]]*CustomLog .*|CustomLog /dev/stdout combined|g' /etc/apache2/httpd.conf; sed -ri 's|#ServerName www.example.com:80|ServerName localhost|g' /etc/apache2/httpd.conf; sed -ri 's|^listen = .*|listen = 127.0.0.1:9000|g' /etc/php84/php-fpm.d/www.conf; if [ -f /etc/php84/php.ini-production ]; then cp /etc/php84/php.ini-production /etc/php84/php.ini; fi; if [ -d /var/www/localhost/htdocs ]; then rmdir /var/www/localhost/htdocs || true; ln -s /var/www/html /var/www/localhost/htdocs; fi # buildkit
RUN /bin/sh -c sed -ri 's|^(LoadModule\s+lbmethod_heartbeat_module\b.*)|# \1|' /etc/apache2/httpd.conf # buildkit
COPY apache-phpfpm.conf /etc/apache2/conf.d/php-fpm.conf # buildkit
COPY data/www/ /var/www/html/ # buildkit
HEALTHCHECK &{["CMD-SHELL" "wget -qO- http://127.0.0.1/ >/dev/null || exit 1"] "30s" "3s" "0s" "0s" '\x03'}
COPY docker-entrypoint.sh /docker-entrypoint.sh # buildkit
RUN /bin/sh -c chmod +x /docker-entrypoint.sh # buildkit
EXPOSE map[80/tcp:{}]
CMD ["/docker-entrypoint.sh"]
Details
Container
2025-08-30 20:14:46 +02:00
2
OCI / Docker
linux/amd64
22 MiB
Versions (4) View all
latest 2025-09-23
0.2.1 2025-08-30
0.2.0 2025-08-30
0.1.0 2025-08-30