Skip to content

Commit

Permalink
Fix startup command to propagate OS signals
Browse files Browse the repository at this point in the history
Remove redundant shell command (implicit from using shell form of `CMD`)
and use exec to run supervisord.

Issue: BB-633
  • Loading branch information
francoisferrand committed Dec 11, 2024
1 parent 5242c74 commit b224aa6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion images/federation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,5 +43,5 @@ WORKDIR ${HOME_DIR}/backbeat
COPY --chown=${USER}:0 --from=builder /usr/src/app ${HOME_DIR}/backbeat

# Run supervisord with the provided configuration (and remove entrypoint from parent image)
CMD bash -C "source ${CONF_DIR}/env && export && supervisord -c ${CONF_DIR}/${SUPERVISORD_CONF}"
CMD [ "/bin/bash", "-c", "source ${CONF_DIR}/env && export && exec supervisord -c ${CONF_DIR}/${SUPERVISORD_CONF}" ]
ENTRYPOINT []

0 comments on commit b224aa6

Please sign in to comment.