Skip to content

Docker Multi-stage Build for Tiny Go Image Deployment

License

Notifications You must be signed in to change notification settings

numq/dockerize-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dockerize Go

Docker Multi-stage Build for Tiny Go Image Deployment.

*Multi-stage - this is a way to reduce an image size creating an empty image and copying the binary file into it.

  • First stage
    • Create a new image
    • Install dependencies
    • Build binaries
  • Second stage
    • Create a new image
    • Copy binaries
    • Launch

Run:

docker compose up [OPTIONS] [SERVICE...]

Releases

No releases published

Packages

No packages published