Skip to content
/ cfgo Public
forked from cloudflare/go

Go with Cloudflare experimental patches

License

Notifications You must be signed in to change notification settings

trevatk/cfgo

 
 

Cloudflare go

fork of cfgo bookworm dockerized image to be used as base image when building applications.

Example

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"]

About

Go with Cloudflare experimental patches

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Packages

 
 
 

Languages

  • Go 88.6%
  • Assembly 5.7%
  • HTML 5.3%
  • C 0.2%
  • Shell 0.1%
  • Perl 0.1%