File tree 3 files changed +6
-4
lines changed
3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,10 @@ ARG STABILITY=stable
40
40
ENV STABILITY ${STABILITY}
41
41
42
42
# Allow to select skeleton version
43
- ARG VERSION =""
43
+ ARG SYMFONY_VERSION =""
44
44
45
45
# Download the Symfony skeleton and leverage Docker cache layers
46
- RUN composer create-project "symfony/skeleton ${VERSION }" . --stability=$STABILITY --prefer-dist --no-dev --no-progress --no-scripts --no-plugins --no-interaction
46
+ RUN composer create-project "symfony/skeleton ${SYMFONY_VERSION }" . --stability=$STABILITY --prefer-dist --no-dev --no-progress --no-scripts --no-plugins --no-interaction
47
47
48
48
# ##> recipes ###
49
49
# ##< recipes ###
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ services:
5
5
build :
6
6
context : .
7
7
args :
8
- VERSION : ${SYMFONY_VERSION}
8
+ SYMFONY_VERSION : ${SYMFONY_VERSION}
9
9
STABILITY : stable
10
10
volumes :
11
11
# Comment out the next line in production
@@ -15,6 +15,8 @@ services:
15
15
- /srv/app/var/cache/
16
16
- /srv/app/var/logs/
17
17
- /srv/app/var/sessions/
18
+ environment :
19
+ - SYMFONY_VERSION
18
20
19
21
nginx :
20
22
build :
Original file line number Diff line number Diff line change 9
9
if [ " $1 " = ' php-fpm' ] || [ " $1 " = ' bin/console' ]; then
10
10
# The first time volumes are mounted, the project needs to be recreated
11
11
if [ ! -f composer.json ]; then
12
- composer create-project " symfony/skeleton $VERSION " tmp --stability=$STABILITY --prefer-dist --no-progress --no-interaction
12
+ composer create-project " symfony/skeleton $SYMFONY_VERSION " tmp --stability=$STABILITY --prefer-dist --no-progress --no-interaction
13
13
cp -Rp tmp/. .
14
14
rm -Rf tmp/
15
15
elif [ " $APP_ENV " != ' prod' ]; then
You can’t perform that action at this time.
0 commit comments