This website uses cookies to ensure you get the best experience.
Learn more.
A Go application needs a compiler during the build but not while running. The team wants a small runtime image without build tools. Which image-build approach fits?
Published
- Install the compiler in the runtime image and leave all build files there
- Use a liveness probe to uninstall build packages on every restart
- Put the compiler's name in a Kubernetes Service annotation
- A multi-stage build that copies the compiled binary into a minimal runtime stage
Comments — 0
Sign in to comment