78801c98e4
And print version at startup.
14 lines
268 B
Text
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" ]
|