Skip to content

Commit

Permalink
Merge pull request #651 from nanasess/fix-install-composer
Browse files Browse the repository at this point in the history
マルチステージビルドを使用して composer をインストールする
  • Loading branch information
chihiro-adachi authored Dec 26, 2022
2 parents c7c4b00 + 5ba1e96 commit f3db17a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,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
Expand Down

0 comments on commit f3db17a

Please sign in to comment.