You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Reopening of #4235, feel free to close and reopen the other.
Is your feature request related to a problem? Please describe.
squash is often needed to handle base image builds, see moby/moby#38657 and the long list of --squash related bugs on moby tracker. A lot of us rely on it.
It would be nice to have a supported toggle in compose to enable the flag.
The text was updated successfully, but these errors were encountered:
I mention my comment in #4235 here too, since this is an open issue. At least to my search, many propose to just use multistage builds to compensate for the lack of squash, but the issue is that it does not seem possible to inherit CMD/ENTRYPOINT/USER/WORKDIR from the parent image we are multistage-"squashing" (or I did not find the way to do it). A docker-compose build --squash option would be extremely helpful to make e.g. gitlab CI pipelines more efficient since pulling only a few layers seems to be faster due to less validation (and also the output is less cluttered with many hundered lines of docker pull output).
As a naive proposal:
...
my_service:
build:
- squash: true #or 1 or whatever is the best yml const
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Reopening of #4235, feel free to close and reopen the other.
Is your feature request related to a problem? Please describe.
squash is often needed to handle base image builds, see moby/moby#38657 and the long list of --squash related bugs on moby tracker. A lot of us rely on it.
It would be nice to have a supported toggle in compose to enable the flag.
The text was updated successfully, but these errors were encountered: