Browse Source

fix: dockerfile entrypoint and cmd

Karol Sójko 3 years ago
parent
commit
263dc8a98d
2 changed files with 4 additions and 2 deletions
  1. 3 1
      packages/scheduler/Dockerfile
  2. 1 1
      packages/scheduler/docker/entrypoint.sh

+ 3 - 1
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" ]

+ 1 - 1
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' )