Updated Docker images (9.18, 9.20, 9.21) - now based on Alpine Linux

Devpt Calmarsoft devpt at calmarsoft.com
Mon Sep 2 13:22:12 UTC 2024


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!!!





More information about the bind-users mailing list