Add the extra.symfony.docker flag
This commit is contained in:
parent
4e521cac9e
commit
36c7735281
@ -32,10 +32,11 @@ COPY ./docker/h2-proxy/default.conf /etc/nginx/conf.d/default.conf
|
|||||||
### PHP
|
### PHP
|
||||||
FROM php:${PHP_VERSION}-fpm-alpine AS symfony_docker_php
|
FROM php:${PHP_VERSION}-fpm-alpine AS symfony_docker_php
|
||||||
|
|
||||||
RUN apk add --no-cache --virtual .persistent-deps \
|
RUN apk add --no-cache \
|
||||||
git \
|
git \
|
||||||
icu-libs \
|
icu-libs \
|
||||||
zlib
|
zlib \
|
||||||
|
jq
|
||||||
|
|
||||||
ENV APCU_VERSION 5.1.12
|
ENV APCU_VERSION 5.1.12
|
||||||
RUN set -eux \
|
RUN set -eux \
|
||||||
|
@ -16,6 +16,10 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'bin/console' ]; then
|
|||||||
# The first time volumes are mounted, the project needs to be recreated
|
# The first time volumes are mounted, the project needs to be recreated
|
||||||
if [ ! -f composer.json ]; then
|
if [ ! -f composer.json ]; then
|
||||||
composer create-project "symfony/skeleton $SYMFONY_VERSION" tmp --stability=$STABILITY --prefer-dist --no-progress --no-interaction
|
composer create-project "symfony/skeleton $SYMFONY_VERSION" tmp --stability=$STABILITY --prefer-dist --no-progress --no-interaction
|
||||||
|
jq '.extra.symfony.docker=true' tmp/composer.json > tmp/composer.tmp.json
|
||||||
|
rm tmp/composer.json
|
||||||
|
mv tmp/composer.tmp.json tmp/composer.json
|
||||||
|
|
||||||
cp -Rp tmp/. .
|
cp -Rp tmp/. .
|
||||||
rm -Rf tmp/
|
rm -Rf tmp/
|
||||||
elif [ "$APP_ENV" != 'prod' ]; then
|
elif [ "$APP_ENV" != 'prod' ]; then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user