3 ms·
> RUN chmod -R nobody:nobody /app Did you know: RUNning chmod increases the size of the layer by the size of the file being chmodded[1]. Just some more of that
by zamalek 5y ago
> RUN chmod -R nobody:nobody /app
Did you know: RUNning chmod increases the size of the layer by the size of the file being chmodded[1]. Just some more of that magical secret sauce.
(With buildah you choose when to create a layer, so both the COPY and the chmod can be layered together)
[1]: https://blog.vamc19.dev/posts/dockerfile-copy-chmod/ https://blog.vamc19.dev/posts/dockerfile-copy-chmod/
- forty 5y agoAh well, no I did not know, thanks :) in my case it's not too bad because I use kaniko's option to make a single layer of my changes, but good to know.