From d9d98a5fb960219e9e6b2811cb91b6bb5c2e400d Mon Sep 17 00:00:00 2001 From: Florian Trayon <26360935+FlorianLeChat@users.noreply.github.com> Date: Mon, 2 Dec 2024 21:02:07 +0100 Subject: [PATCH] Improved Dockerfile syntax to prevent unwanted behavior --- docker/Dockerfile.prod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/Dockerfile.prod b/docker/Dockerfile.prod index ff60265..1d13da6 100644 --- a/docker/Dockerfile.prod +++ b/docker/Dockerfile.prod @@ -16,7 +16,7 @@ WORKDIR /var/www/html COPY --chown=www-data:www-data . . # Use the default or custom PHP configuration (if exists) -RUN mv $PHP_INI_DIR/php.ini-production $PHP_INI_DIR/php.ini && \ +RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" && \ if [ -f "docker/php.ini" ]; then \ mv "docker/php.ini" "$PHP_INI_DIR/php.ini"; \ fi