On 10/12/21 10:03 AM, Alex Bennée wrote:
We need^H^H^H^H (might need, see bellow) a separate patch with:

docker-image-debian10: NOUSER=1

to ensure the images we base our "handbuilt" compilers on don't include
a potentially clashing uid (which should only be added for local
builds).

I think we ought to push this further back into docker.py.

I think that we should always have a separate image without the user installed. When asking for a build with user installed, copy the nouser image (perhaps cached) and simply add the user.

We need to split this like in hexagon and have a second stage which does
a:

   COPY --from=0 /usr/local /usr/local

This will limit the size of the final image (and also avoid duplicting
the UID in the hexagon build).

What are we eliminating from the image with the second FROM, since we then go back and add in all the build-dep for qemu.

There are one or two extra packages required for building gcc itself (e.g. libmpc) but they're not large. Where does the major savings come from?


r~

Reply via email to