10x Docker
Dockerfile
For Go API please follow the recommendations in ./references/go-api-dockerfile.md For Frontend applications follow the recommendations in ./references/frontend-dockerfile.md
Dockerfile Performance
-
Layer Caching:
- Copy dependency files first (go.mod, package.json)
- Run dependency download before copying source
- Order COPY commands from least to most frequently changed
-
Build Optimization:
- Use multi-stage builds
- Minimize numbe
[Description truncada. Veja o README completo no GitHub.]