From c3bd18164878936f4e8bfb3e30096b1dbbd5e691 Mon Sep 17 00:00:00 2001 From: Deluan Date: Sat, 15 Feb 2020 18:34:47 -0500 Subject: [PATCH] feat: use tini to help in avoiding dangling processes --- Dockerfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 7043c716e..a4b3b6ee5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -48,6 +48,11 @@ RUN GIT_TAG=$(git name-rev --name-only HEAD) && \ FROM alpine as release MAINTAINER Deluan Quintao +# Download Tini +ENV TINI_VERSION v0.18.0 +ADD https://github.com/krallin/tini/releases/download/${TINI_VERSION}/tini-static /tini +RUN chmod +x /tini + COPY --from=gobuilder /src/navidrome /app/ COPY --from=gobuilder /tmp/ffmpeg*/ffmpeg /usr/bin/ @@ -64,4 +69,5 @@ ENV ND_PORT 4533 EXPOSE 4533 WORKDIR /app -ENTRYPOINT "/app/navidrome" +ENTRYPOINT ["/tini", "--"] +CMD ["/app/navidrome"]