Skip to content

Commit 6f0446b

Browse files
committed
Another small fix related to caching during build / deployment
1 parent b07454f commit 6f0446b

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

build.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ then
3333
# "package-lock.json" from the code and from the container to decide,
3434
# whether we need to re-cache, and thus to copy "node_modules" from
3535
# the Docker container.
36-
docker cp app:/opt/app/package-lock.json new-package-lock.json
37-
cmp package-lock.json new-package-lock.json
36+
mv package-lock.json old-package-lock.json
37+
docker cp app:/opt/app/package-lock.json package-lock.json
38+
cmp package-lock.json old-package-lock.json
3839
UPDATE_CACHE=$?
3940
else
4041
# If "node_modules" does not exist, then cache must be created.

0 commit comments

Comments
 (0)