feat: allow to install the website skeleton (#152)

* feat: allow to install the website skeleton

* wip

* wip

* cleanup

* revert rename in docs

* cleanup
This commit is contained in:
Kévin Dunglas
2021-06-14 15:12:18 +02:00
committed by GitHub
parent a0192fdac4
commit c99c188211
6 changed files with 43 additions and 18 deletions

View File

@@ -18,7 +18,6 @@ RUN apk add --no-cache \
gettext \
git \
gnu-libiconv \
jq \
;
# install gnu-libiconv and set LD_PRELOAD env to make iconv work fully on Alpine image.
@@ -82,12 +81,17 @@ ENV PATH="${PATH}:/root/.composer/vendor/bin"
WORKDIR /srv/app
# Allow to choose skeleton
ARG SKELETON="symfony/skeleton"
ENV SKELETON ${SKELETON}
# Allow to use development versions of Symfony
ARG STABILITY="stable"
ENV STABILITY ${STABILITY:-stable}
ENV STABILITY ${STABILITY}
# Allow to select skeleton version
ARG SYMFONY_VERSION=""
ENV SYMFONY_VERSION ${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-interaction; \