Update Dockerfile for environment file handling

- Changed from moving to copying the .env.sample
- Updated path to use APACHE_DOCUMENT_ROOT for .env
This commit is contained in:
Jeroen De Meerleer 2025-01-20 17:37:40 +01:00
parent 1f56280531
commit e0a0b96c70
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6

View File

@ -32,7 +32,7 @@ RUN set -eux; \
USER www-data USER www-data
WORKDIR ${WEBSITE_ROOT} WORKDIR ${WEBSITE_ROOT}
RUN mv .env.sample .env COPY .env.sample ${APACHE_DOCUMENT_ROOT}/.env
RUN composer install RUN composer install
RUN php bin/console asset-map:compile RUN php bin/console asset-map:compile