Skip to content

Commit 18ef271

Browse files
committed
cleanup
1 parent b9a8c27 commit 18ef271

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

Dockerfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ RUN apk add --no-cache \
1818
gettext \
1919
git \
2020
gnu-libiconv \
21-
jq \
2221
;
2322

2423
# install gnu-libiconv and set LD_PRELOAD env to make iconv work fully on Alpine image.

docker/php/docker-entrypoint.sh

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,7 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
2121
composer create-project "$SKELETON $SYMFONY_VERSION" tmp --stability="$STABILITY" --prefer-dist --no-progress --no-interaction --no-install
2222

2323
cd tmp
24-
jq '.extra.symfony.docker=true' composer.json > composer.tmp.json
25-
ls
26-
rm composer.json
27-
mv composer.tmp.json composer.json
24+
composer config --json extra.symfony.docker 'true'
2825
cp -Rp . ..
2926
cd -
3027

@@ -36,8 +33,8 @@ if [ "$1" = 'php-fpm' ] || [ "$1" = 'php' ] || [ "$1" = 'bin/console' ]; then
3633
composer install --prefer-dist --no-progress --no-interaction
3734

3835
if grep -q ^DATABASE_URL= .env; then
39-
if [ -z "$CREATION" ]; then
40-
echo "Please stop and start docker compose again to finish the installation."
36+
if [ "$CREATION" = "1" ]; then
37+
echo "To finish the installation please press Ctrl+C to stop Docker Compose and run: docker-compose up --build"
4138
sleep infinity
4239
fi
4340

0 commit comments

Comments
 (0)