Gentoo as a Docker Build System?
summary
Claim: use Gentoo to compile a custom PHP image and then squash it down with Docker multi-stage builds to a practical size. Process uses Gentoo emerge and the Portage tree, compiles for ~20–25 minutes, hits hidden build deps and requires compiling some bits twice, pulls in libs like libpng libjpeg and timezone data. Starting images near 1.3–1.5 GB shrink to about 112 megabytes then to ~72 megabytes and with Kuebler as low as 65 MB.
AI-written summary · about
chapters (6)
- 0:00Start
- 0:36A EXOSCAL
- 1:59Can you use Gentoo as a Docker build system?
- 16:16Multi-stage builds get rid the previous Docker layers
- 19:41Debugging minimalistic containers
- 21:35Use separate debug containers to fix issues
related talks
49mDocker & PHP development and deployment
46mDocker, Kubernetes, and OpenShift for PHP Developers
02h 14mRunning PHP in Docker containers
25mDocker for PHP Developers
31mHow to Create PHP Development Environments with Docker Compose
35mPractical PHP Deployment with Jenkins
47mGitLab and PHP? It Works! Tips, Tricks and Learnings
35mPractical PHP Deployment with Jenkins
