Files
pz8-relay/Dockerfile
T
2026-05-06 00:11:40 +02:00

15 lines
265 B
Docker

FROM golang:1.26.2 AS build
WORKDIR /code
COPY go.mod ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 go build -v -ldflags="-s -w" -o /usr/bin/app ./...
FROM gcr.io/distroless/static:nonroot
EXPOSE 8080
COPY --from=build /usr/bin/app /app
ENTRYPOINT ["/app"]