Declare specific PHP version

This commit is contained in:
xZero707 2021-09-22 18:53:18 +02:00
parent 1a55ef8a9a
commit be1b046e1b

View File

@ -1,5 +1,6 @@
ARG PHP_VERSION=7.4
ARG WP_VERSION=5.8.0
FROM wordpress:${WP_VERSION}-php7.4-fpm-alpine AS wordpress-builder
FROM wordpress:${WP_VERSION}-php${PHP_VERSION}-fpm-alpine AS wordpress-builder
USER root
@ -13,7 +14,7 @@ RUN mkdir -p usr/local/bin \
################################################# APP ##################################################################
FROM nlss/php-nginx
FROM nlss/php-nginx:${PHP_VERSION}
ARG WP_VERSION
ENV APK_DEPS "zlib-dev libzip-dev libpng-dev icu-dev imagemagick-dev patch"
ENV APK_BUILD_DEPS "curl-dev autoconf alpine-sdk"