Skip to content

Commit dcecc84

Browse files
authored
Merge pull request #13 from kenjis/update-composer-installation
Update Composer installation
2 parents e741e0d + 8effc9e commit dcecc84

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Dockerfile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,11 @@ RUN docker-php-ext-enable mysqli
1515
RUN docker-php-ext-enable pdo
1616
RUN docker-php-ext-enable pdo_mysql
1717
RUN apt-get -y install --fix-missing zip unzip
18+
RUN apt-get -y install --fix-missing git
1819

1920
# Composer
20-
RUN curl -sS https://getcomposer.org/installer | php
21-
RUN mv composer.phar /usr/local/bin/composer
22-
RUN chmod +x /usr/local/bin/composer
23-
RUN composer self-update
21+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
22+
RUN composer self-update --2
2423

2524
ADD conf/apache.conf /etc/apache2/sites-available/000-default.conf
2625

0 commit comments

Comments
 (0)