Adapt installation for dump env var

This commit is contained in:
maxhelias
2020-06-20 01:27:16 +02:00
parent 967f3f270a
commit 139593083d
3 changed files with 11 additions and 3 deletions

View File

@@ -85,7 +85,7 @@ ENV STABILITY ${STABILITY:-stable}
ARG SYMFONY_VERSION=""
# Download the Symfony skeleton and leverage Docker cache layers
RUN composer create-project "symfony/skeleton ${SYMFONY_VERSION}" . --stability=$STABILITY --prefer-dist --no-dev --no-progress --no-scripts --no-interaction; \
RUN composer create-project "symfony/skeleton ${SYMFONY_VERSION}" . --stability=$STABILITY --prefer-dist --no-dev --no-progress --no-interaction; \
composer clear-cache
###> recipes ###
@@ -95,8 +95,9 @@ COPY . .
RUN set -eux; \
mkdir -p var/cache var/log; \
composer install --no-progress --no-suggest --no-interaction --no-dev --no-scripts; \
composer install --prefer-dist --no-dev --no-progress --no-scripts --no-interaction; \
composer dump-autoload --classmap-authoritative --no-dev; \
composer symfony:dump-env prod; \
composer run-script --no-dev post-install-cmd; sync
VOLUME /srv/app/var