Skip to content

priyawadhwa/go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go Builder Image

Container image for building Go applications.

This image is rebuilt nightly from a GitHub action.

Get It!

The go image is available on the GHCR and distroless.dev registries:

docker pull distroless.dev/go:latest
docker pull ghcr.io/distroless/go:latest

Usage

To build the Go application in examples/hello/main.go using the host architecture:

docker run --rm -v "${PWD}:/work" -w /work/examples/hello \
    -e GOOS="$(go env GOOS)" -e GOARCH="$(go env GOARCH)" \
    distroless.dev/go build -o /work/hello .

The example application will be built to ./hello:

$ ./hello
Hello World!

Build

This image is built with apko.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages