Skip to content

Latest commit

 

History

History
33 lines (21 loc) · 499 Bytes

README.md

File metadata and controls

33 lines (21 loc) · 499 Bytes

Small container images

Small container images are a reality. This repo shows that without extra effort you can

  • run go binaries in an empty image, built FROM sratch
  • have an image size as low as 6MB

How build

Prerequisites:

  • Docker
  • Make

Build

make build

The go binary is built with CGO_ENABLED=0 to force a statically linked binary.

Get image size

make size

will yield output similar to

6.07MB