diff --git a/Dockerfile b/Dockerfile index cb662ff..7c87624 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ -FROM golang:1.10.3 as builder +FROM golang:1.12 as builder WORKDIR /go/src/github.com/sstarcher/helm-exporter COPY . /go/src/github.com/sstarcher/helm-exporter RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /go/bin/helm-exporter /go/src/github.com/sstarcher/helm-exporter/main.go -FROM alpine:3.6 +FROM alpine:3.9 RUN apk --update add ca-certificates +USER helm-exporter COPY --from=builder /go/bin/helm-exporter /usr/local/bin/helm-exporter ENTRYPOINT ["helm-exporter"]