Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 598 Bytes

README.md

File metadata and controls

27 lines (22 loc) · 598 Bytes

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...]