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.
- Paketo Jammy Full Builder
- Paketo Jammy Base Builder
- Paketo Jammy Tiny Builder
- Paketo Jammy Static Buildpackless Builderโ
- Paketo Full Builder
- Paketo Base Builder
- Paketo Tiny Builder
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>