So I got nerd-snipped by a constructive comment on Twitter to take another look on how the Tuleap Docker images are built…
The squashing done by copying the whole image with COPY --from=0 / /
is criticized.
This was originally done because we have to copy the whole RPM repository into the build for Tuleap Enterprise Edition image, squashing the whole image saved some MB overall even when upgrading to a close version (see gerrit #18478).
We can improve that:
- copying the RPM repository into the build is not needed for the Tuleap Community Edition image
- we now have access to the
RUN --mount=type=bind
directive so the copy is not needed anymore