-
Notifications
You must be signed in to change notification settings - Fork 642
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
Avoiding chown to reduce the image size #544
Comments
I see the point, but I wonder how we could doing the COPY / ADD from the assembly and the If you have an idea I'm happy to add this as an optimization. |
@rhuss Hi Roland, as moby/moby#6119 is fixed now, could you please kindly make an optimization? |
Good point, will start working on it hopefully soonish. Do you know the Docker (or even better API) version, since when these flags are available ? |
|
@rohanKanojia If you have some spare cycles (not necessarily for the next release), could you give a look to get rid of our own |
The issue #175 introduced an extra layer for the chown that is doubling the content size of the chown ed folder (for an image containing the jdk+jboss it could be huge).
Is it possible to avoid this extra layer using a single CMD (without the COPY)?
By doing a curl and chown in the same RUN command, this drastically reduces the image size, but in this case I have to use an external Dockerfile and I'd prefer being fully maven-style (using the assembly).
Any idea how to fix this?
The text was updated successfully, but these errors were encountered: