This repository has been archived on 2021-03-04. You can view files and clone it, but cannot push or open issues/pull-requests.
alertmanager-gotify/Dockerfile

23 lines
508 B
Docker
Raw Permalink Normal View History

2019-05-24 17:02:40 +02:00
FROM golang:alpine as builder
WORKDIR /go/src/git.sbruder.de/simon/alertmanager-gotify/
COPY alertmanager-gotify.go .
2019-06-17 14:21:36 +02:00
RUN apk add --no-cache git ca-certificates
2019-05-24 17:02:40 +02:00
RUN go get -v \
2019-06-17 14:21:36 +02:00
&& CGO_ENABLED=0 go build -v -ldflags="-s -w"
2019-05-24 17:02:40 +02:00
FROM scratch
2019-06-17 13:30:50 +02:00
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt
2019-05-24 17:02:40 +02:00
COPY --from=builder /go/src/git.sbruder.de/simon/alertmanager-gotify/alertmanager-gotify /alertmanager-gotify
USER 1000
ENTRYPOINT ["/alertmanager-gotify"]
EXPOSE 8081