Skip to content
This repository was archived by the owner on Jan 23, 2025. It is now read-only.

Commit d4be527

Browse files
committed
Fixing build.sh
1 parent 6eb8da8 commit d4be527

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
#!/bin/bash
22
set -eo pipefail
3-
APP_NAME=$1
43
UPDATE_CACHE=""
5-
docker-compose -f docker/docker-compose.yml build $APP_NAME
6-
docker create --name app $APP_NAME:latest
4+
docker-compose -f docker/docker-compose.yml build legacy-challenge-processor
5+
docker create --name app legacy-challenge-processor:latest
76

87
if [ -d node_modules ]
98
then
109
mv package-lock.json old-package-lock.json
11-
docker cp app:/$APP_NAME/package-lock.json package-lock.json
10+
docker cp app:/app/package-lock.json package-lock.json
1211
set +eo pipefail
1312
UPDATE_CACHE=$(cmp package-lock.json old-package-lock.json)
1413
set -eo pipefail
@@ -18,5 +17,6 @@ fi
1817

1918
if [ "$UPDATE_CACHE" == 1 ]
2019
then
21-
docker cp app:/$APP_NAME/node_modules .
22-
fi
20+
docker cp app:/app/node_modules .
21+
fi
22+

0 commit comments

Comments
 (0)