add ca-certificates
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Simon Bruder 2019-06-17 11:30:50 +00:00
parent 9871336025
commit aee461b47c
No known key found for this signature in database
GPG key ID: 6F03E0000CC5B62F

View file

@ -4,7 +4,7 @@ WORKDIR /go/src/git.sbruder.de/simon/alertmanager-gotify/
COPY alertmanager-gotify.go .
RUN apk add --no-cache git upx
RUN apk add --no-cache git upx ca-certificates
RUN go get -v \
&& CGO_ENABLED=0 go build -v -ldflags="-s -w" \
@ -12,6 +12,8 @@ RUN go get -v \
FROM scratch
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
COPY --from=builder /go/src/git.sbruder.de/simon/alertmanager-gotify/alertmanager-gotify /alertmanager-gotify
USER 1000