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
|
|
|
|
RUN go generate ./... && go build -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" ]
|