Skip to content

Commit 7b9bb4b

Browse files
committed
ref #134 fix the PHP Docker image build
1 parent 74695bc commit 7b9bb4b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ RUN set -eux; \
4343
gd \
4444
exif \
4545
pdo \
46-
iconv \
4746
pcntl \
4847
mbstring \
4948
fileinfo \
@@ -83,7 +82,8 @@ RUN set -eux; \
8382
ENV COMPOSER_ALLOW_SUPERUSER=1
8483
# install Symfony Flex globally to speed up download of Composer packages (parallelized prefetching)
8584
RUN set -eux; \
86-
composer global require "symfony/flex" --prefer-dist --no-progress --no-suggest --classmap-authoritative; \
85+
composer global config --no-plugins allow-plugins.symfony/flex true; \
86+
composer global require "symfony/flex" --prefer-dist --no-progress --classmap-authoritative; \
8787
composer clear-cache
8888
ENV PATH="${PATH}:/root/.composer/vendor/bin"
8989

@@ -93,9 +93,9 @@ WORKDIR /srv/bolt
9393
ARG APP_ENV=prod
9494

9595
# prevent the reinstallation of vendors at every changes in the source code
96-
COPY composer.json composer.lock symfony.lock ./
96+
COPY composer.* symfony.lock ./
9797
RUN set -eux; \
98-
composer install --prefer-dist --no-dev --no-scripts --no-progress --no-suggest; \
98+
composer install --prefer-dist --no-dev --no-scripts --no-progress; \
9999
composer clear-cache
100100

101101
# do not use .env files in production

0 commit comments

Comments
 (0)