Docker Best Practices (2025)
First Question: Do You Need a Dockerfile?
For fast-moving projects, the fastest Docker setup has no Dockerfile at all.
Do you need a Dockerfile?
│
├─ Deploying to your own swarm/server?
│ └─ NO - Use mounted code pattern (see below)
│
├─ Publishing to Docker Hub / registry?
│ └─ YES - Others need to build your image
│
├─ CI/CD building images?
│ └─ YES - Need reproducible builds
│
├─ Complex native dependencies?
│ └─ MAYBE - If mount + base image
[Description truncada. Veja o README completo no GitHub.]