2023-01-14 21:26:57 +01:00
|
|
|
FROM golang:alpine as build
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . .
|
2023-01-16 14:35:53 +01:00
|
|
|
RUN apk add --no-cache git
|
2023-02-16 13:06:21 +01:00
|
|
|
RUN go build -ldflags="-X main.version=$(git describe --long)" -o /app/ntfy-alertmanager
|
2023-01-14 21:26:57 +01:00
|
|
|
|
|
|
|
|
|
|
|
FROM alpine:latest
|
|
|
|
WORKDIR /
|
|
|
|
|
|
|
|
COPY --from=build /app/ntfy-alertmanager /ntfy-alertmanager
|
|
|
|
|
|
|
|
ENTRYPOINT [ "./ntfy-alertmanager" ]
|