ntfy-alertmanager/docker/Dockerfile-dev
Thorben Günther d25169e203
docker: Fix warnings
"FromAsCasing: 'as' and 'FROM' keywords' casing do not match"
2024-11-07 14:24:33 +01:00

14 lines
297 B
Text

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" ]