test
This commit is contained in:
1 parent
72a99a5bcd
commit
75756ac6ec
10 files changed
+1144
-32
No files matched your search
+10
-2
@@ -103,7 +103,11 @@ COPY composer.json composer.lock* symfony.lock* ./
|
||||
# Install vendors (cached)
|
||||
RUN --mount=type=cache,target=/tmp/composer \
|
||||
if [ -f composer.json ]; then \
|
||||
composer install --no-dev --prefer-dist --no-interaction --no-progress --no-scripts; \
|
||||
if [ "$APP_ENV" = "dev" ] || [ "$APP_ENV" = "test" ]; then \
|
||||
composer install --prefer-dist --no-interaction --no-progress --no-scripts; \
|
||||
else \
|
||||
composer install --no-dev --prefer-dist --no-interaction --no-progress --no-scripts; \
|
||||
fi; \
|
||||
fi
|
||||
|
||||
# Copy the rest of the app
|
||||
@@ -112,7 +116,11 @@ COPY . /var/www/html
|
||||
# Finalize install & warm cache
|
||||
RUN if [ -f bin/console ]; then \
|
||||
set -ex; \
|
||||
composer dump-autoload --no-dev --optimize; \
|
||||
if [ "$APP_ENV" = "dev" ] || [ "$APP_ENV" = "test" ]; then \
|
||||
composer dump-autoload --optimize; \
|
||||
else \
|
||||
composer dump-autoload --no-dev --optimize; \
|
||||
fi; \
|
||||
mkdir -p var var/data public/uploads; \
|
||||
chown -R www-data:www-data var public/uploads; \
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user