ntfy-alertmanager/docker/Dockerfile-dev
Thorben Günther 78801c98e4
Add version flag
And print version at startup.
2023-01-16 14:35:53 +01:00

14 lines
268 B
Text

FROM golang:alpine as build
WORKDIR /app
COPY . .
RUN apk add --no-cache git
RUN go generate ./... && go build -o /app/ntfy-alertmanager
FROM alpine:latest
WORKDIR /
COPY --from=build /app/ntfy-alertmanager /ntfy-alertmanager
ENTRYPOINT [ "./ntfy-alertmanager" ]