-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove some unused packages #1324
Comments
Those are all left on purpose so that extra extensions can be easily installed via php/8.1/bullseye/fpm/Dockerfile Lines 20 to 39 in 6598612
|
See also #438, especially #438 (comment). |
If I understood it correctly, the pointed comment is about debian's apt-get purge not being good enough. I don't disagree with that. But if we want to avoid needless packages (@yosifkit implied they were actually needed for derived images), we could take the multi-stage approach:
|
The difficulty is not in what we build/include in the images (we can manage that), but rather that there are explicitly parts of PHP itself that we do not build in the images, but do support |
(This is a follow-up of monicahq/docker#109)
I see in a Dockerfile some effort is made to remove unused packages. But inspecting the resulting image, some packages seem questionable for a production image, for example autoconf, make, curl (command-line tool), dpkg-dev, gcc.
Those would be acceptable for an build-stage image where only required stuff would be installed/copied in the production-stage image. Furthermore, cleaning unused packages from a build-stage image would be pointless, so the apt-mark part would not even be needed.
The text was updated successfully, but these errors were encountered: