Skip to content

Commit a002778

Browse files
committed
Using better way to install Composer
1 parent 0bd0521 commit a002778

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

docker/Dockerfile

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,7 @@ ARG BUILD_ROOT_PATH
99
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
1010
RUN apt-get update
1111
RUN apt-get install -y zip unzip curl git
12-
RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
13-
RUN php composer-setup.php --install-dir=/usr/bin --filename=composer
14-
RUN php -r "unlink('composer-setup.php');"
12+
COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
1513

1614
WORKDIR ${BUILD_ROOT_PATH}
1715
COPY . ./

0 commit comments

Comments
 (0)