This repository has been archived on 2021-03-04. You can view files and clone it, but cannot push or open issues or pull requests.
alertmanager-gotify/Dockerfile
Simon Bruder 09c4d66797
All checks were successful
continuous-integration/drone/push Build is passing
do not use upx
2019-06-17 12:21:36 +00:00

23 lines
508 B
Docker

FROM golang:alpine as builder
WORKDIR /go/src/git.sbruder.de/simon/alertmanager-gotify/
COPY alertmanager-gotify.go .
RUN apk add --no-cache git ca-certificates
RUN go get -v \
&& CGO_ENABLED=0 go build -v -ldflags="-s -w"
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
ENTRYPOINT ["/alertmanager-gotify"]
EXPOSE 8081