Introducing
Your new presentation assistant.
Refine, enhance, and tailor your content, source relevant images, and edit visuals quicker than ever before.
Trending searches
Julien CROUZET
eTF1
Standard images
• Use standard "FROM golang" and build
• Optimize Dockerfile for caching
• Use Golang:onbuild
Standard
Binary built in image
Big image size
Lot of unnecessary files
Optimize image building
to make it lighter
• .dockerignore or specify files
• Use alpine-based Golang image
• Binary-only image without go
Lighter images
No unnecessary files
Go as prerequisite on CI system
Keep lighter images,
with a smarter build
• Docker multistage (>=17.05)
• Generate multiple versions (run & debug)
• Complex case with prebuilt image
Lighter images
No unnecessary files
Build outside container
Non-go binary