From e8e1da9c61464f3bee761adc5e1ff07c5c7c3495 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sat, 13 Aug 2022 01:40:00 +0200 Subject: [PATCH] Remove not needed node_modules/ folder during docker build This should make the docker image a bit smaller (approx. 70 MB) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b8d8fc1b..4c2ea511 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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