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

Commit 7494bfc

Browse files
committed
Fixing deploy
1 parent dcdbf8f commit 7494bfc

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

build.sh

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

79
if [ -d node_modules ]
810
then
@@ -18,5 +20,4 @@ fi
1820
if [ "$UPDATE_CACHE" == 1 ]
1921
then
2022
docker cp app:/app/node_modules .
21-
fi
22-
23+
fi

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,4 @@ COPY . /app
4343
WORKDIR /app
4444
RUN rm -rf node_modules && npm install --unsafe-perm
4545

46-
ENTRYPOINT [ "npm" ]
46+
ENTRYPOINT ["npm", "start"]

0 commit comments

Comments
 (0)