docker pull cgr.dev/chainguard/ko
Need access to a specific version? Contact us.
Get notified of upcoming product changes, critical vulnerability notifications and patches and more.
Sign inMinimal image to build and deploy Go applications using ko
The image is available on cgr.dev
:
This is an image that contains ko, go, and build-base.
This image is designed for use in situations where you would like to use ko
with codebases that have C dependencies where cgo
must be used. In these cases, staticly linking against musl instead of glibc results in smaller binaries.
Navigate to the example/
directory:
Then run:
This will build the example program, but not push it, due to --push=false
.
To push, you will need to mount in your Docker config to provide auth by adding:
If you're using Docker credential helpers, those will need to be made available in the container as well so that ko
can invoke them.
Chainguard Images contain software packages that are direct or transitive dependencies. The following licenses were found in the "latest" version of this image:
Apache-2.0
BSD-2-Clause
BSD-3-Clause
GCC-exception-3.1
GPL-2.0-only
GPL-2.0-or-later
GPL-3.0-or-later
For a complete list of licenses, please refer to this Image's SBOM.
Software license agreementProducts
Chainguard Images© 2024 Chainguard, Inc.