Skip to content

Commit

Permalink
fix CVEs and add user
Browse files Browse the repository at this point in the history
  • Loading branch information
sstarcher committed Jun 7, 2019
1 parent a240b73 commit c01e340
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
@@ -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"]

0 comments on commit c01e340

Please sign in to comment.