From 263dc8a98dd42377c1a6dccf24e6b004eee1893f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20S=C3=B3jko?= Date: Tue, 21 Jun 2022 14:42:15 +0200 Subject: [PATCH] fix: dockerfile entrypoint and cmd --- packages/scheduler/Dockerfile | 4 +++- packages/scheduler/docker/entrypoint.sh | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/scheduler/Dockerfile b/packages/scheduler/Dockerfile index 4a67e5933..789654fc3 100644 --- a/packages/scheduler/Dockerfile +++ b/packages/scheduler/Dockerfile @@ -20,4 +20,6 @@ COPY --from=builder /workspace ./ # docker-build plugin runs `yarn pack` in all workspace dependencies and copies them to `packs` folder. COPY packs ./ -CMD yarn workspace @standardnotes/scheduler-server worker +ENTRYPOINT [ "packages/scheduler/docker/entrypoint.sh" ] + +CMD [ "start-worker" ] diff --git a/packages/scheduler/docker/entrypoint.sh b/packages/scheduler/docker/entrypoint.sh index 7dd20bc47..41aa3196b 100755 --- a/packages/scheduler/docker/entrypoint.sh +++ b/packages/scheduler/docker/entrypoint.sh @@ -6,7 +6,7 @@ COMMAND=$1 && shift 1 case "$COMMAND" in 'start-worker' ) echo "Starting Worker..." - yarn worker + yarn workspace @standardnotes/scheduler-server worker ;; 'verify-jobs' )