Skip to content

THINKLab2020/go-hello-world

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Go hello world that uses the go:alpine multi-arch base image and can be built and run on any architecture.

  • docker build . -f Dockerfile -t go-hello-world
  • docker run -p 8080:8080 go-hello-world

We optimize from ~600MB to ~5MB image size by:

  • Using multi-stage builds (600MB->16MB) 97% reduction
  • Stripping out debug info (16MB-12MB) 25% reduction
  • UPX (12MB->7MB) 41% reduction
  • Storing on Dockerhub (7MB->5MB) 28% reduction

Total image size is 120x smaller than original !

Deployment options:

  1. Docker
  2. Jenkinsfile:
  3. IBM Multicloud Manager

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Dockerfile 79.8%
  • Go 20.2%