Added prefer-dist flag to composer execution on docker build

This commit is contained in:
Alejandro Celaya 2019-08-17 17:19:33 +02:00
parent 217003381a
commit 3ffa46fb26

View File

@ -35,7 +35,7 @@ RUN apk add --no-cache --virtual .phpize-deps ${PHPIZE_DEPS} && \
COPY . . COPY . .
RUN rm -rf ./docker && \ RUN rm -rf ./docker && \
wget https://getcomposer.org/download/${COMPOSER_VERSION}/composer.phar && \ wget https://getcomposer.org/download/${COMPOSER_VERSION}/composer.phar && \
php composer.phar install --no-dev --optimize-autoloader --no-progress --no-interaction && \ php composer.phar install --no-dev --optimize-autoloader --prefer-dist --no-progress --no-interaction && \
php composer.phar clear-cache && \ php composer.phar clear-cache && \
rm composer.* rm composer.*