Remove not needed node_modules/ folder during docker build

This should make the docker image a bit smaller (approx. 70 MB)
This commit is contained in:
Jan Böhmer 2022-08-13 01:40:00 +02:00
parent e5183ba1b2
commit e8e1da9c61

View file

@ -47,7 +47,7 @@ RUN a2enmod rewrite
# Install composer and yarn dependencies for Part-DB
USER www-data
RUN composer install -a --no-dev && composer clear-cache
RUN yarn install && yarn build && yarn cache clean
RUN yarn install && yarn build && yarn cache clean && rm -rf node_modules/
# Use demo env to output logs to stdout
ENV APP_ENV=demo