Merge pull request #477 from bseb/master

Add dumb-init to Dockerfile Entrypoint
This commit is contained in:
Jimmy Zelinskie 2017-10-16 10:58:15 -04:00 committed by GitHub
commit db91b91f38

View File

@ -20,9 +20,10 @@ EXPOSE 6060 6061
ADD . /go/src/github.com/coreos/clair/
WORKDIR /go/src/github.com/coreos/clair/
RUN apk add --no-cache git bzr rpm xz && \
RUN apk add --no-cache git bzr rpm xz dumb-init && \
go install -v github.com/coreos/clair/cmd/clair && \
mv /go/bin/clair /clair && \
rm -rf /go /usr/local/go
ENTRYPOINT ["/clair"]
ENTRYPOINT ["/usr/bin/dumb-init", "--", "/clair"]