From 5ba1e9699ab7af9246d11c9e664e5dd4c500e170 Mon Sep 17 00:00:00 2001 From: Kentaro Ohkouchi Date: Tue, 6 Dec 2022 16:01:55 +0900 Subject: [PATCH] Installing composer using a multi-stage build --- Dockerfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2a7c11d3af..d26332d5e6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -29,9 +29,7 @@ RUN docker-php-ext-configure gd ${GD_OPTIONS} && docker-php-ext-install ${EXT_IN RUN pecl install ${APCU} && docker-php-ext-enable apcu # composer -RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ - && php composer-setup.php --2.2 --install-dir=/usr/local/bin --filename=composer \ - && php -r "unlink('composer-setup.php');" +COPY --from=composer:2.2 /usr/bin/composer /usr/bin/composer ENV APACHE_DOCUMENT_ROOT /var/www/app/html ENV ECCUBE_PREFIX /var/www/app