From 9a231e50e2814e682fb9e53881f1dc627824142c Mon Sep 17 00:00:00 2001 From: bach Date: Thu, 25 Feb 2021 18:07:19 +0100 Subject: [PATCH] changed npm entry point to make clean install 'npm ci' --- Docker/npm/client-entrypoint.sh | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/Docker/npm/client-entrypoint.sh b/Docker/npm/client-entrypoint.sh index 3748233..6df0c1a 100644 --- a/Docker/npm/client-entrypoint.sh +++ b/Docker/npm/client-entrypoint.sh @@ -3,14 +3,17 @@ # cat /etc/passwd|grep 1000 cd /app -echo "Cleaning node_modules" -rm -rf node_modules +# echo "Cleaning node_modules" +# rm -rf node_modules +# +# echo "Cleaning npm cache" +# npm cache clean --f +# +# echo "Npm install" +# npm install -echo "Cleaning npm cache" -npm cache clean --f - -echo "Npm install" -npm install +echo "Npm Clean Install" +npm ci echo "Run npm dev" npm run dev