Merge pull request #800 from akirayamamoto/experiment/alpine-base-no-php

Drop FROM php:8-alpine in favor of FROM alpine:3.23 (~55% smaller image)
This commit is contained in:
sstidl 2026-05-16 17:57:30 +02:00 committed by GitHub
commit c11ee9f68a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,7 +1,9 @@
FROM php:8-alpine
FROM alpine:3.23
RUN apk add --quiet --no-cache \
bash \
apache2 \
ca-certificates \
php \
php-apache2 \
php-ctype \
php-phar \
@ -15,12 +17,6 @@ RUN apk add --quiet --no-cache \
php-session \
php-sqlite3
# # use docker-php-extension-installer for automatically get the right packages installed
# ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
# # Install extensions
# RUN install-php-extensions iconv gd pdo pdo_mysql pdo_pgsql pgsql
RUN ln -sf /dev/stdout /var/log/apache2/access.log && \
ln -sf /dev/stderr /var/log/apache2/error.log