add php7.2 Dockerfile.

This commit is contained in:
rainerosion 2024-05-06 17:20:35 +08:00
parent 8f49a44eac
commit f4e8c3d2e2

View File

@ -79,8 +79,8 @@ RUN set -eux; \
/usr/share/caddy \
/etc/supervisor/conf.d \
/srv ; \
wget -O /etc/caddy/Caddyfile "https://github.com/caddyserver/dist/raw/cd39178d252a610fee6aa8465c787d9c780007a2/config/Caddyfile"; \
wget -O /usr/share/caddy/index.html "https://github.com/caddyserver/dist/raw/cd39178d252a610fee6aa8465c787d9c780007a2/welcome/index.html"; \
wget -O /etc/caddy/Caddyfile "https://p.miss.cx/https://raw.githubusercontent.com/caddyserver/dist/cd39178d252a610fee6aa8465c787d9c780007a2/config/Caddyfile"; \
wget -O /usr/share/caddy/index.html "https://p.miss.cx/https://raw.githubusercontent.com/caddyserver/dist/cd39178d252a610fee6aa8465c787d9c780007a2/welcome/index.html"; \
echo "<?php phpinfo();" > /usr/share/caddy/info.php; \
apkArch="$(apk --print-arch)"; \
case "$apkArch" in \
@ -98,7 +98,7 @@ RUN set -eux; \
setcap cap_net_bind_service=+ep /usr/bin/caddy; \
chmod +x /usr/bin/caddy; \
caddy version; \
docker-php-ext-configure gd --enable-gd --with-jpeg --with-webp --with-freetype; \
docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-webp-dir=/usr/include/; \
docker-php-ext-install -j $(nproc) $PHP_EXTENSIONS; \
pecl install -o -f redis; \
pecl install memcached imagick; \