Optimize the existing Dockerfile to reduce build time and image size for better development experience.
Tasks
Use multi-stage build to reduce final image size
Optimize layer caching for dependencies
Add .dockerignore improvements
Remove unnecessary packages from final image
Document the changes in comments
Files to modify
- Dockerfile
- .dockerignore
- docker-compose.yml (if needed)
Optimize the existing Dockerfile to reduce build time and image size for better development experience.
Tasks
Use multi-stage build to reduce final image size
Optimize layer caching for dependencies
Add .dockerignore improvements
Remove unnecessary packages from final image
Document the changes in comments
Files to modify