fix: dockerfile entrypoint and cmd

This commit is contained in:
Karol Sójko 2022-06-21 14:42:15 +02:00
parent 2106375695
commit 263dc8a98d
No known key found for this signature in database
GPG key ID: A50543BF560BDEB0
2 changed files with 4 additions and 2 deletions

View file

@ -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" ]

View file

@ -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' )