From 9d9bfaa7ef81a763180b5bdd330e0da7b7a7fd9a Mon Sep 17 00:00:00 2001 From: Valentin Lab Date: Sun, 9 Feb 2020 12:16:17 +0100 Subject: [PATCH] fix: support of Ctrl-C Before, bash would not correctly handle the subprocess, and would fail to kill itself. Signed-off-by: Valentin Lab --- Dockerfile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 06dbe7a..a4d6c1b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -118,4 +118,8 @@ RUN apk add openssh-client ## install compose COPY ./bin/ /usr/local/bin/ -ENTRYPOINT ["/usr/local/bin/compose-core"] +## Fixes Ctrl-C handling: +## see https://github.com/moby/moby/issues/2838#issuecomment-402491110 +RUN apk add --no-cache tini +# Tini is now available at /sbin/tini +ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/compose-core"] \ No newline at end of file