fix: dockerfile entrypoint and cmd
This commit is contained in:
parent
2106375695
commit
263dc8a98d
2 changed files with 4 additions and 2 deletions
|
@ -20,4 +20,6 @@ COPY --from=builder /workspace ./
|
||||||
# docker-build plugin runs `yarn pack` in all workspace dependencies and copies them to `packs` folder.
|
# docker-build plugin runs `yarn pack` in all workspace dependencies and copies them to `packs` folder.
|
||||||
COPY packs ./
|
COPY packs ./
|
||||||
|
|
||||||
CMD yarn workspace @standardnotes/scheduler-server worker
|
ENTRYPOINT [ "packages/scheduler/docker/entrypoint.sh" ]
|
||||||
|
|
||||||
|
CMD [ "start-worker" ]
|
||||||
|
|
|
@ -6,7 +6,7 @@ COMMAND=$1 && shift 1
|
||||||
case "$COMMAND" in
|
case "$COMMAND" in
|
||||||
'start-worker' )
|
'start-worker' )
|
||||||
echo "Starting Worker..."
|
echo "Starting Worker..."
|
||||||
yarn worker
|
yarn workspace @standardnotes/scheduler-server worker
|
||||||
;;
|
;;
|
||||||
|
|
||||||
'verify-jobs' )
|
'verify-jobs' )
|
||||||
|
|
Loading…
Reference in a new issue