11 lines
338 B
Docker
11 lines
338 B
Docker
FROM golang:1.23-alpine AS build
|
|
WORKDIR /src
|
|
COPY . .
|
|
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /out/notify-gateway ./cmd/gateway
|
|
|
|
FROM gcr.io/distroless/static-debian12:nonroot
|
|
COPY --from=build /out/notify-gateway /notify-gateway
|
|
VOLUME ["/data"]
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["/notify-gateway","-config","/data/config.json"]
|