From 8bcd7b2b6514d1513ad73eeaf21981fdfcd2de52 Mon Sep 17 00:00:00 2001 From: Malachi Soord Date: Wed, 9 Nov 2022 12:47:28 +0100 Subject: [PATCH] Include node_modules in final image (#263) Co-authored-by: Franck Nijhof --- tasmoadmin/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasmoadmin/Dockerfile b/tasmoadmin/Dockerfile index e491240..83ccfa6 100755 --- a/tasmoadmin/Dockerfile +++ b/tasmoadmin/Dockerfile @@ -34,6 +34,7 @@ RUN \ \ && npm ci \ && node minify.js \ + && NODE_ENV=production npm ci \ \ && apk del --no-cache --purge .build-dependencies \ \ @@ -45,7 +46,6 @@ RUN \ /var/www/tasmoadmin/.github \ /var/www/tasmoadmin/.iocage \ /var/www/tasmoadmin/docker-compose.yml \ - /var/www/tasmoadmin/tasmoadmin/node_modules \ /var/www/tasmoadmin/tasmoadmin/tests \ \ && find /var/www/tasmoadmin -type f -name ".htaccess" -depth -exec rm -f {} \; \