Skip to content
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

docker images could use multi-stage builds #101

Closed
marosivanco opened this issue Jul 10, 2018 · 1 comment
Closed

docker images could use multi-stage builds #101

marosivanco opened this issue Jul 10, 2018 · 1 comment
Labels
Request Request for image modification or feature

Comments

@marosivanco
Copy link

There is a lot going on in the httpd Dockerfile: install build/runtime dependencies, download sources, build httpd...
The images could benefit from multi stage builds (available from Docker 17.05).
The basic idea is to separate the whole process into two stages:
Build - which can create temp image with build-time dependencies, download sources, check sum, build.

(unnamed) - which installs run-time dependencies and copies built artefacts from the Build stage.

@tianon
Copy link
Member

tianon commented Jul 10, 2018 via email

@wglambert wglambert added the Request Request for image modification or feature label Jul 10, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Request Request for image modification or feature
Projects
None yet
Development

No branches or pull requests

3 participants