From 0ce5dcbf50e9177309794e31e01ffa9517cc8f1e Mon Sep 17 00:00:00 2001 From: smart_ex Date: Thu, 28 Jul 2022 17:29:03 +1000 Subject: [PATCH] update dockerfile and start commands --- Dockerfile | 2 +- docker-compose.test.yml | 8 ++++---- package.json | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 7cdad73..693aa0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -19,7 +19,7 @@ WORKDIR /app RUN apk update && apk add --no-cache g++ make python3 && rm -rf /var/cache/apk/* -COPY --from=dev /usr/app/build /app +COPY --from=dev /usr/app/ /app COPY --from=dev /usr/app/package.json /app/ COPY --from=dev /usr/app/yarn.lock /app/ diff --git a/docker-compose.test.yml b/docker-compose.test.yml index 828575e..e562bd7 100644 --- a/docker-compose.test.yml +++ b/docker-compose.test.yml @@ -4,26 +4,26 @@ services: server: image: tornadocash/relayer:v5.0.0 restart: always - command: 'node app/index.js' + command: 'server' env_file: .env build: context: . dockerfile: Dockerfile ports: - - 8000:8000 + - '8000:8000' depends_on: [redis] txWorker: image: tornadocash/relayer:v5.0.0 restart: unless-stopped - command: 'node txWorker.js' + command: 'txWorker' env_file: .env depends_on: [redis] healthWorker: image: tornadocash/relayer:v5.0.0 restart: unless-stopped - command: 'node healthWorker.js' + command: 'healthWorker' env_file: .env depends_on: [redis] diff --git a/package.json b/package.json index b82afee..6c9c37c 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "version": "5.0.0", "description": "Relayer for Tornado.cash privacy solution. https://tornado.cash", "scripts": { - "start": "yarn build && yarn server && yarn txWorker && yarn healthWorker", + "start": "yarn build && yarn server & yarn txWorker & yarn healthWorker", "server": "node build/src/app/index.js", "txWorker": "node build/src/txWorker.js", "healthWorker": "node build/src/healthWorker.js",