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.
This commit is contained in:
parent
1f56280531
commit
30bf965d0a
@ -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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user