13 lines
No EOL
246 B
Docker
13 lines
No EOL
246 B
Docker
FROM docker.io/golang:latest as builder
|
|
ARG CGO_ENABLED=0
|
|
WORKDIR /app
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
COPY . .
|
|
|
|
RUN go build
|
|
|
|
FROM scratch
|
|
COPY --from=builder /app/alertmanager-ntfy /alertmanager-ntfy
|
|
ENTRYPOINT ["/alertmanager-ntfy"] |