Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
berkay-dincer committed Nov 29, 2019
1 parent b32893a commit 0b556c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
@@ -1,4 +1,3 @@
# builder image
FROM golang:1.13-alpine3.10 as builder

ENV CGO_ENABLED 0
Expand All @@ -11,12 +10,11 @@ ENV GOARCH amd64
RUN go build -o /bin/kubethanos -v \
-ldflags "-X main.version=$(git describe --tags --always --dirty) -w -s"

# final image
FROM alpine:3.10
MAINTAINER Berkay Dinçer <dincerbberkay@gmail.com>

RUN apk --no-cache add ca-certificates dumb-init tzdata
COPY --from=builder /bin/kubethanos /bin/kubethanos

USER 65534
ENTRYPOINT ["/bin/kubethanos"]
ENTRYPOINT ["/bin/kubethanos"]

0 comments on commit 0b556c8

Please sign in to comment.