From 30bf965d0a2e12bcae08a9b106cc0bb5b352bf16 Mon Sep 17 00:00:00 2001 From: Jeroen De Meerleer Date: Mon, 20 Jan 2025 17:40:57 +0100 Subject: [PATCH] Update env file handling in Docker setup Changed the environment file renaming to use a variable for better flexibility. Now it moves the sample env file based on the website root path. --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 58dada9..d05fa6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ ENV TZ=Europe/Brussels ENV COMPOSER_ALLOW_SUPERUSER=1 ENV DEBIAN_FRONTEND=noninteractive -COPY . ${APACHE_DOCUMENT_ROOT} +COPY . ${WEBSITE_ROOT} RUN sed -ri -e "s!/var/www/html!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/sites-available/*.conf RUN sed -ri -e "s!/var/www/!${APACHE_DOCUMENT_ROOT}!g" /etc/apache2/apache2.conf /etc/apache2/conf-available/*.conf @@ -32,7 +32,7 @@ RUN set -eux; \ USER www-data WORKDIR ${WEBSITE_ROOT} -RUN mv .env.sample .env +RUN mv ${WEBSITE_ROOT}.env.sample ${WEBSITE_ROOT}.env RUN composer install RUN php bin/console asset-map:compile