Browse Source

changed npm entry point to make clean install 'npm ci'

bach 3 years ago
parent
commit
9a231e50e2
1 changed files with 10 additions and 7 deletions
  1. 10 7
      Docker/npm/client-entrypoint.sh

+ 10 - 7
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