diff --git a/Dockerfile b/Dockerfile index 8e40da8..bb57e69 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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