ntfy-alertmanager/docker/Dockerfile-dev

15 lines
297 B
Text
Raw Permalink Normal View History

FROM golang:alpine as build
WORKDIR /app
COPY . .
RUN apk add --no-cache git
RUN go build -ldflags="-X main.version=$(git describe --long)" -o /app/ntfy-alertmanager
FROM alpine:latest
WORKDIR /
COPY --from=build /app/ntfy-alertmanager /ntfy-alertmanager
ENTRYPOINT [ "./ntfy-alertmanager" ]