From 9ec42b03fa688ae8e88e4e1af6f2c28c34c6b9a4 Mon Sep 17 00:00:00 2001 From: xZero707 Date: Tue, 26 Jul 2022 21:13:53 +0200 Subject: [PATCH] Use key=value syntax to mitigate errors --- Dockerfile | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0ac08e8..3b47a7c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -60,16 +60,16 @@ RUN mv /etc/nginx/conf.d /etc/nginx/http.d \ && chmod a+x /usr/local/bin/wp ARG WP_VERSION -ENV WP_VERSION ${WP_VERSION} -ARG WP_LOCALE en_US -ENV WP_LOCALE ${WP_LOCALE} -ENV VIRTUAL_HOST your-domain.com -ENV S6_KEEP_ENV 1 -ENV S6_BEHAVIOUR_IF_STAGE2_FAILS 2 -ENV ENFORCE_DISABLE_WP_UPDATES true -ENV WP_CLI_DISABLE_AUTO_CHECK_UPDATE true -ENV CRON_ENABLED true -ENV WEB_ROOT html +ENV WP_VERSION="${WP_VERSION}" +ARG WP_LOCALE="en_US" +ENV WP_LOCALE=${WP_LOCALE} +ENV VIRTUAL_HOST=your-domain.com +ENV S6_KEEP_ENV=1 +ENV S6_BEHAVIOUR_IF_STAGE2_FAILS=2 +ENV ENFORCE_DISABLE_WP_UPDATES=true +ENV WP_CLI_DISABLE_AUTO_CHECK_UPDATE=true +ENV CRON_ENABLED=true +ENV WEB_ROOT=html WORKDIR "/var/www/${WEB_ROOT}/" VOLUME ["/root/.wp-cli", "/var/www/${WEB_ROOT}", "/var/www/${WEB_ROOT}/wp-content"]