Skip to content

Commit

Permalink
Merge pull request #58 from grosser/grosser/dumb
Browse files Browse the repository at this point in the history
add dumb-init
  • Loading branch information
linki committed Jan 17, 2018
2 parents c9196e3 + 1a82be3 commit 41152d8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# builder image
FROM golang:1.9-alpine as builder

RUN apk -U add git
RUN apk --no-cache add git
RUN go get github.com/golang/dep/cmd/dep
WORKDIR /go/src/github.com/linki/chaoskube
COPY . .
Expand All @@ -14,8 +14,8 @@ RUN go build -o /bin/chaoskube -v \
FROM alpine:3.6
MAINTAINER Linki <linki+docker.com@posteo.de>

RUN addgroup -S chaoskube && adduser -S -g chaoskube chaoskube
RUN apk --no-cache add dumb-init && addgroup -S chaoskube && adduser -S -g chaoskube chaoskube
COPY --from=builder /bin/chaoskube /bin/chaoskube

USER chaoskube
ENTRYPOINT ["/bin/chaoskube"]
ENTRYPOINT ["dumb-init", "--", "/bin/chaoskube"]

0 comments on commit 41152d8

Please sign in to comment.