Le 02/09/2024 à 15:00, Marc a écrit :
I think this will copy duplicates, duplicates increase still layer
size so you have 2x size of a default /usr
Alpine is so small that I did not notice that ! thanks !
so you can only copy individual files

You are right, extra files appear in the diff! I was thinking that the
files already present would be discarded. Copying individual files in
this case is not the solution: there are plenty of files (305 if counting
includes)

So this is a bit more complicated to achieve something cleaner. Maybe
install the binaries in an alternate directory in the build step?
What about compiling with prefix /usr/local/ I think this is empty in alpline. I have the impression more vendors do this.

Yes, or on contrary maybe a pure temp directory: in any case we don't keep it so that name should not be important. Other details may need to be reviewed like runtime dependencies, strip binaries or not (at most a couple of MB so probably pointless).

And most important, real testing (I only checked that named loads with no error).

I fear side effects of the "--prefix=/install". There is probably a better way to change installation path.


I made a new Dockerfile based on this idea, now the result is 66MB.
Nice!!!



--
Visit https://lists.isc.org/mailman/listinfo/bind-users to unsubscribe from 
this list

ISC funds the development of this software with paid support subscriptions. 
Contact us at https://www.isc.org/contact/ for more information.


bind-users mailing list
bind-users@lists.isc.org
https://lists.isc.org/mailman/listinfo/bind-users

Reply via email to