File tree 3 files changed +8
-2
lines changed
3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -39,8 +39,11 @@ RUN composer global require "hirak/prestissimo:^0.3" --prefer-dist --no-progress
39
39
ARG STABILITY=stable
40
40
ENV STABILITY ${STABILITY}
41
41
42
+ # Allow to select skeleton version
43
+ ARG VERSION=""
44
+
42
45
# Download the Symfony skeleton and leverage Docker cache layers
43
- RUN composer create-project "symfony/skeleton" . --stability=$STABILITY --prefer-dist --no-dev --no-progress --no-scripts --no-plugins --no-interaction
46
+ RUN composer create-project "symfony/skeleton ${VERSION} " . --stability=$STABILITY --prefer-dist --no-dev --no-progress --no-scripts --no-plugins --no-interaction
44
47
45
48
# ##> recipes ###
46
49
# ##< recipes ###
Original file line number Diff line number Diff line change @@ -4,6 +4,9 @@ services:
4
4
app :
5
5
build :
6
6
context : .
7
+ args :
8
+ VERSION : ${SYMFONY_VERSION}
9
+ STABILITY : stable
7
10
volumes :
8
11
# Comment out the next line in production
9
12
- ./:/srv/app:rw
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" tmp --stability=$STABILITY --prefer-dist --no-progress --no-interaction
12
+ composer create-project " symfony/skeleton $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