From b224aa66605ad00aed44cab784db6bbbeaec8815 Mon Sep 17 00:00:00 2001 From: Francois Ferrand Date: Mon, 2 Dec 2024 09:48:49 +0100 Subject: [PATCH] Fix startup command to propagate OS signals Remove redundant shell command (implicit from using shell form of `CMD`) and use exec to run supervisord. Issue: BB-633 --- images/federation/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/images/federation/Dockerfile b/images/federation/Dockerfile index 217a65c4b..b9e8efe23 100644 --- a/images/federation/Dockerfile +++ b/images/federation/Dockerfile @@ -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 []