File tree 3 files changed +11
-3
lines changed
3 files changed +11
-3
lines changed Original file line number Diff line number Diff line change 8
8
** /.gitattributes
9
9
** /.gitignore
10
10
** /.gitmodules
11
+ ** /docker-compose. * .yaml
12
+ ** /docker-compose. * .yml
13
+ ** /docker-compose.yaml
14
+ ** /docker-compose.yml
11
15
** /Dockerfile
12
16
** /Thumbs.db
13
17
.editorconfig
14
- .env *
18
+ .env. * .local
19
+ .env.local
20
+ .env.local.php
15
21
.php_cs.cache
16
22
bin /*
17
23
! bin /console
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ ENV STABILITY ${STABILITY:-stable}
85
85
ARG SYMFONY_VERSION=""
86
86
87
87
# Download the Symfony skeleton and leverage Docker cache layers
88
- RUN composer create-project "symfony/skeleton ${SYMFONY_VERSION}" . --stability=$STABILITY --prefer-dist --no-dev --no-progress --no-scripts --no- interaction; \
88
+ RUN composer create-project "symfony/skeleton ${SYMFONY_VERSION}" . --stability=$STABILITY --prefer-dist --no-dev --no-progress --no-interaction; \
89
89
composer clear-cache
90
90
91
91
# ##> recipes ###
@@ -95,8 +95,9 @@ COPY . .
95
95
96
96
RUN set -eux; \
97
97
mkdir -p var/cache var/log; \
98
- composer install --no-progress --no-suggest --no-interaction --no-dev --no-scripts ; \
98
+ composer install --prefer-dist --no-dev --no-progress --no-scripts --no-interaction ; \
99
99
composer dump-autoload --classmap-authoritative --no-dev; \
100
+ composer symfony:dump-env prod; \
100
101
composer run-script --no-dev post-install-cmd; sync
101
102
VOLUME /srv/app/var
102
103
Original file line number Diff line number Diff line change @@ -25,6 +25,7 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
25
25
cp -Rp tmp/. .
26
26
rm -Rf tmp/
27
27
elif [ " $APP_ENV " != ' prod' ]; then
28
+ rm -f .env.local.php
28
29
composer install --prefer-dist --no-progress --no-suggest --no-interaction
29
30
fi
30
31
You can’t perform that action at this time.
0 commit comments