Skip to content

ci: Reduce intermediate docker layers and final image size

Instead of COPY to get tar files, execute RUN w/ --mount. Note that this requires the docker "buildkit" feature to be enabled.

As reported by docker image ls:

REPOSITORY  TAG      IMAGE ID       CREATED          SIZE
after       latest   9cbe45d327ba   3 minutes ago    3.89GB
before      latest   e30f326dad2b   15 minutes ago   4.45GB

-560M is worth it IMHO.

Backport: release
Topic-rename: ci-docker-layers

Edited by Brad King

Merge request reports