We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 826e65b commit 7d8b2d5Copy full SHA for 7d8b2d5
.gitignore
@@ -39,4 +39,5 @@ web/.build
39
40
.DS_Store
41
*~
42
-.idea
+.idea
43
+.pkg.sha1
docker-entrypoint.sh
@@ -1,6 +1,11 @@
1
#! /usr/bin/env sh
2
+set -e
3
cd /usr/src/app || exit
-if [ ! -d "node_modules" ]; then
4
+touch .pkg.sha1
5
+OLD_SHA=$(cat .pkg.sha1)
6
+NEW_SHA=$(sha1sum package.json)
7
+if [ "$OLD_SHA" != "$NEW_SHA" ]; then
8
+ echo "$NEW_SHA" > .pkg.sha1
9
npm install
10
rm -rf node_modules/cp-translations
11
ln -s /usr/src/cp-translations node_modules/cp-translations
0 commit comments