Docker: Multi-Stage and Multi-Environment -php2019
summary
Claims that one Dockerfile per project plus multi-stage builds and docker-compose produce explicit dev vs production artifacts, smaller images and faster builds. Demonstrates switching base to Alpine and shrinking an image from hundreds of MB to about 41 MB, installs only needed PHP extensions, runs tests in a CLI stage, builds and pushes via GitHub -> CodeBuild -> ECR -> ECS/Fargate, and experiments with running images from Lambda for ad hoc jobs.
AI-written summary · about
chapters (8)
- 0:00Start
- 1:57Run a Docker Image
- 10:56Docker File
- 13:02Conclusion
- 22:09Docker Build
- 23:30Install php Unit
- 36:07Docker Compose
- 51:21Final Considerations
related talks
49mDocker & PHP development and deployment
42mKickass Laravel Development with Docker
34mTest Environments Management with
36mDockerization in the land of Ruby
29mDockerfile: the best practices
51mProduction level Docker
46mDocker from Dev to Production: Streamlining the CI/CD process for BALR
57mKiller Docker Workflows for Development
