3 ms·
One more. Copy files with the correct chmod, don’t chmod copied files in a separate run command because that run command will create a new layer. This surfaces
by rad_gruchalski 5y ago
One more. Copy files with the correct chmod, don’t chmod copied files in a separate run command because that run command will create a new layer.
This surfaces when adding larger files.
Similarly, don’t wget in a run command, then chmod. Use add with a url where possible, combine with chmod flag. When not easy (file from authentication protected storage), you can optionally use a named stage and copy from that stage into your target image. You can also copy from another image!