-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add squash support for automated builds #955
Comments
Dockerhub support of multi-stage builds would also address the same pain-point. |
I'd be happy with just a basic "additional flags" input on the build configuration page, to be honest. A checkbox for "squash" make it simple, but the input would make it a bit more extensible in the future. |
Even if not an entire "additional flags" field, just a checkbox for |
Multi Stage build coming to Docker Cloud. https://forums.docker.com/t/multi-stage-builds-coming-soon-to-docker-cloud/32414 |
Multi-Stage builds don't address everything that --squash does. --squash allows for cleaner Dockerfiles and faster builds (we don't have to delete caches until the last step). Docker Hub could save a lot of bandwidth and worker time by allowing us this option. |
For what it's worth, I rewrote my Dockerfiles from being
|
Support for
|
Multistage builds are nice for projects with only compiled binaries that can be passed around, but other projects get more benefits from squashing. |
Any updates? |
The new
docker build --squash
is a great step once that becomes stable. That will allow us to build our docker images without leaving proprietary source code behind in the image layers without workarounds.The next step is to provide that as a config option for automated builds in dockerhub. Without that option, we are required to use external systems for some of our Docker image builds.
The text was updated successfully, but these errors were encountered: