add php7.2 Dockerfile.
This commit is contained in:
parent
8f49a44eac
commit
f4e8c3d2e2
@ -79,8 +79,8 @@ RUN set -eux; \
|
|||||||
/usr/share/caddy \
|
/usr/share/caddy \
|
||||||
/etc/supervisor/conf.d \
|
/etc/supervisor/conf.d \
|
||||||
/srv ; \
|
/srv ; \
|
||||||
wget -O /etc/caddy/Caddyfile "https://github.com/caddyserver/dist/raw/cd39178d252a610fee6aa8465c787d9c780007a2/config/Caddyfile"; \
|
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://github.com/caddyserver/dist/raw/cd39178d252a610fee6aa8465c787d9c780007a2/welcome/index.html"; \
|
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; \
|
echo "<?php phpinfo();" > /usr/share/caddy/info.php; \
|
||||||
apkArch="$(apk --print-arch)"; \
|
apkArch="$(apk --print-arch)"; \
|
||||||
case "$apkArch" in \
|
case "$apkArch" in \
|
||||||
@ -98,7 +98,7 @@ RUN set -eux; \
|
|||||||
setcap cap_net_bind_service=+ep /usr/bin/caddy; \
|
setcap cap_net_bind_service=+ep /usr/bin/caddy; \
|
||||||
chmod +x /usr/bin/caddy; \
|
chmod +x /usr/bin/caddy; \
|
||||||
caddy version; \
|
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; \
|
docker-php-ext-install -j $(nproc) $PHP_EXTENSIONS; \
|
||||||
pecl install -o -f redis; \
|
pecl install -o -f redis; \
|
||||||
pecl install memcached imagick; \
|
pecl install memcached imagick; \
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user