Skip to content

Commit 0e898a9

Browse files
author
Kevin Buchholz
committed
pull composer from official docker image
to prevent installation of unwanted php versions
1 parent 56d3174 commit 0e898a9

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Dockerfile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,15 +60,14 @@ RUN apk info \
6060
git \
6161
nodejs \
6262
npm \
63-
composer \
63+
yarn \
6464
mysql-client \
6565
mariadb-connector-c \
6666
php8-dom \
6767
php8-tokenizer \
6868
php8-xml \
6969
php8-xmlwriter \
7070
php8-fileinfo \
71-
yarn \
7271
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
7372
&& docker-php-ext-install -j$(nproc) \
7473
gd \
@@ -91,8 +90,7 @@ RUN apk info \
9190
&& apk del .build-deps \
9291
&& rm -rf /tmp/* /var/cache/apk/*
9392

94-
# fix iconv (see https://github.com/docker-library/php/issues/240#issuecomment-876464325)
95-
93+
COPY --from=composer /usr/bin/composer /usr/bin/composer
9694

9795
# configure composer
9896
ENV COMPOSER_ALLOW_SUPERUSER=1 \

0 commit comments

Comments
 (0)