13 lines
270 B
Docker
13 lines
270 B
Docker
FROM golang:1.25-alpine AS build
|
|
WORKDIR /src
|
|
|
|
COPY go.mod go.sum ./
|
|
RUN go mod download
|
|
|
|
COPY main.go ./
|
|
RUN CGO_ENABLED=0 go build -trimpath -ldflags="-s -w" -o /pois .
|
|
|
|
FROM gcr.io/distroless/static-debian12:nonroot
|
|
COPY --from=build /pois /pois
|
|
ENTRYPOINT ["/pois"]
|