Skip to content

Commit cb6d518

Browse files
committed
install PHP composer
1 parent 68f0623 commit cb6d518

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

dev/docker/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ RUN a2enmod rewrite && \
1818
RUN ( curl -sSLf https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions -o - || echo 'return 1' ) | sh -s \
1919
gd ldap pdo_mysql xdebug zip
2020

21+
# Install composer
22+
COPY --from=composer:latest /usr/bin/composer /bin/composer
23+
2124
ENV APACHE_DOCUMENT_ROOT /app/public
2225
WORKDIR /app
2326

2427
RUN <<EOR
25-
# Install composer
26-
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
27-
2828
# Use the default production configuration and update it as required
2929
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
3030
sed -i 's/memory_limit = 128M/memory_limit = 512M/g' "$PHP_INI_DIR/php.ini"

0 commit comments

Comments
 (0)