From 60a2becec1e9fa33beef6581e52fe1e2b986ec7e Mon Sep 17 00:00:00 2001 From: root Date: Mon, 6 Nov 2017 11:44:18 +0100 Subject: [PATCH] ajout de tiny pour l'init --- Dockerfile | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 619b8b2..5cc7d17 100644 --- a/Dockerfile +++ b/Dockerfile @@ -69,7 +69,13 @@ EXPOSE 8080 WORKDIR "/sabnzbd" -HEALTHCHECK --interval="10s" \ - CMD curl --fail "http://localhost:8080" || exit 1 +# Add Tini +ENV "TINI_VERSION" "v0.16.1" +ADD "https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini" "/tini" +RUN chmod +x "/tini" +ENTRYPOINT ["/tini", "--"] CMD ["/sabnzbd.sh"] + +HEALTHCHECK --interval="10s" \ + CMD curl --fail "http://localhost:8080" || exit 1