From 57e8fdeb10fa1d02411f8387ee65c08bf3922cd4 Mon Sep 17 00:00:00 2001 From: Ben Sebastian Date: Fri, 13 Oct 2017 12:10:37 -0400 Subject: [PATCH] Add dumb-init to Entrypoint --- Dockerfile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 151c3deb..648e8aa7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -25,4 +25,7 @@ RUN apk add --no-cache git bzr rpm xz && \ mv /go/bin/clair /clair && \ rm -rf /go /usr/local/go -ENTRYPOINT ["/clair"] +RUN curl -L https://github.com/Yelp/dumb-init/releases/download/v1.2.0/dumb-init_1.2.0_amd64 > /usr/local/bin/dumb-init \ + && chmod +x /usr/local/bin/dumb-init +ENTRYPOINT ["/usr/local/bin/dumb-init", "--", "/clair"] +