Skip to content

Commit

Permalink
Merge pull request #477 from bseb/master
Browse files Browse the repository at this point in the history
Add dumb-init to Dockerfile Entrypoint
  • Loading branch information
jzelinskie authored Oct 16, 2017
2 parents fbd8407 + 36917c8 commit db91b91
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit db91b91

Please sign in to comment.