Consider switching to Debian as base image
See original GitHub issueCurrently, we are using Alpine as the base image for almost all services. At the time, this was the recommended base image and Docker themself move their own images on Alpine too.
2020 could be the year we switch back to Debian as nowadays they provide official image that no so big (like debian:buster-slim
?). Here is some pro/cons:
Pros:
- a dev env more similar to classical prod env
- easier to use latest PHP version (almost impossible with Alpine)
- Alpine uses the
musl
library instead of classical libc, which used to break some tool like Blackfire
Cons:
- base image a bit bigger (~5Mo VS 60Mo)
- more different base images among all services thus more images to build and store
- bigger and different base images also slow CI build and can cost more credits (but should be less problematic than when we used normal Debian images weighting 500Mo)
Some read:
Issue Analytics
- State:
- Created 4 years ago
- Reactions:3
- Comments:10 (8 by maintainers)
Top Results From Across the Web
Consider switching base image to Debian buster or Ubuntu ...
Consider switching the default build to use a glibc build such as Debian sid, Ubuntu 18.04 or recent versions of Centos to reduce...
Read more >Benchmarking Debian vs Alpine as a Base Docker Image
Most official Docker images offer both Debian and Alpine based images but there's some surprising performance results between the 2.
Read more >Choosing a Base Image For Your Dockerfile - vsupalov.com
Detailed considerations and criteria on how to choose a base image which is right for you ... For others the right answer may...
Read more >A Comparison of Linux Container Images
Therefore, selecting a base image is quite similar to selecting a Linux distro (See also: Do Linux distributions still matter with containers?).
Read more >Choosing a secure Docker base image - Blog - flownative.com
What makes a solid and secure Docker base image? Are there alternatives to Alpine? And which other aspects do you need to consider?...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So, what we should do ? We are going a new major release with a big BC break: python 3 + invoke instead of fabric so we have a window to break everything
And on using default
php:alpine
image, I never succeded to set my extensions without dealing with big headeach and with no success at all.