Skip to content

paketo-buildpacks/go

Go Paketo Buildpack

gcr.io/paketo-buildpacks/go

The Go Paketo Buildpack provides a set of collaborating buildpacks that enable the building of a Go-based application. These buildpacks include:

The buildpack supports building applications that use either the built-in Go modules feature for managing their dependencies. Usage examples can be found in the samples repository under the go directory.

The Go buildpack is compatible with the following builder(s):

This buildpack also includes the following utility buildpacks:

Check out the Go Paketo Buildpack docs for more information.

† To build with the static buildpackless builder, use the following command:

pack build \
  --builder paketobuildpacks/builder-jammy-buildpackless-static \
  --buildpack paketo-buildpacks/go \
  --env "CGO_ENABLED=0" \
  --env "BP_GO_BUILD_FLAGS=-buildmode=default"
  <app-name>