fork of cfgo bookworm dockerized image to be used as base image when building applications.
example using cfgo as base image
FROM trevatk/cfgo:1.22.5-dev-cf AS builder
WORKDIR /usr/src/app
COPY go.mod go.sum ./
RUN go mod download && go mod verify
COPY . ./
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o /usr/src/bin/server ./cmd/server
FROM gcr.io/distroless/base-debian12
WORKDIR /usr/local/bin
USER boundary
COPY --from=builder /usr/src/bin/server .
HEALTHCHECK --interval=5m --timeout=3s \
CMD curl -f http://localhost:8080/healthz || exit 1
ENTRYPOINT ["server"]