Add dumb-init to Entrypoint

This commit is contained in:
Ben Sebastian 2017-10-13 12:10:37 -04:00
parent 148b3e075d
commit 57e8fdeb10

View File

@ -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"]