Skip to content

Example of using the docker scratch base image, to produce a tiny golang docker image.

Notifications You must be signed in to change notification settings

JosephSalisbury/golang-scratch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

golang-scratch

An example of using the scratch base image, to produce a tiny golang docker image. This shows how to statically compile a golang project, as well as usage of the scratch image.

The resulting image is ~6.5MB, while the binary is ~6.3MB.

Usage

  • make to build the binary, and then the image.
  • make run-image to run the image.

About

Example of using the docker scratch base image, to produce a tiny golang docker image.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published