Skip to content

Commit

Permalink
Merge pull request #360 from yguedidi/get-composer-from-official-image
Browse files Browse the repository at this point in the history
Get composer from official image
  • Loading branch information
j0k3r authored Aug 21, 2023
2 parents abb6a98 + f451747 commit 7ac0c31
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
ARG COMPOSER_VERSION=2.5.8

FROM composer:$COMPOSER_VERSION as composer

FROM golang:alpine as builder

# envsubst from gettext can not replace env vars with default values
Expand Down Expand Up @@ -54,10 +58,9 @@ RUN set -ex \
&& ln -sf /usr/sbin/php-fpm81 /usr/sbin/php-fpm \
&& rm -rf /var/cache/apk/* \
&& ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log \
&& curl -s https://getcomposer.org/installer | php \
&& mv composer.phar /usr/local/bin/composer \
&& rm -rf /root/.composer/*
&& ln -sf /dev/stderr /var/log/nginx/error.log

COPY --from=composer /usr/bin/composer /usr/local/bin/composer

COPY root /

Expand Down

0 comments on commit 7ac0c31

Please sign in to comment.