Skip to content

Commit

Permalink
Fix docker build with composer 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsykun committed Feb 12, 2024
1 parent b705ecb commit 78fe71e
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ WORKDIR /var/www/packagist

COPY composer.json composer.lock /var/www/packagist/

RUN composer install --no-interaction --no-suggest --no-dev --no-scripts && \
chown www-data:www-data -R /var/www && \
rm -rf /root/.composer && \
RUN export COMPOSER_ALLOW_SUPERUSER=1; \
composer install --no-interaction --no-suggest --no-dev --no-scripts; \
chown www-data:www-data -R /var/www; \
rm -rf /root/.composer; \
rm -rf vendor/oro/doctrine-extensions/tests vendor/cebe/markdown/tests vendor/monolog/monolog/logo.jpg

COPY --chown=82:82 . /var/www/packagist/
Expand Down

0 comments on commit 78fe71e

Please sign in to comment.