Files
LazyPM/Dockerfile
2026-02-19 19:04:29 +01:00

13 lines
330 B
Docker

FROM golang:1.25.6-alpine AS builder
WORKDIR /app
COPY go.mod go.sum ./
RUN go mod download
COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo \
-ldflags="-w -s" -trimpath -o pm ./cmd/survey/
FROM gcr.io/distroless/static-debian13
WORKDIR /data
COPY --from=builder /app/pm /pm
EXPOSE 8080
ENTRYPOINT ["/pm"]