Skip to content

Commit

Permalink
Optimize docker image size
Browse files Browse the repository at this point in the history
- remove tests from vendor
  • Loading branch information
vtsykun committed Dec 2, 2023
1 parent 8a547bb commit 5d1a255
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ 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
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 5d1a255

Please sign in to comment.