Skip to content

Use multi-stage builds for builders

Richard Clamp requested to merge build-71-reduce-size-of-builder-images into master

We can lose around 600Mb per builder by simply copying all the files from a builder onto the base image when finished. This means the cleanup of /tmp and any apt-get clean yum clean all steps in the main Dockerfile will behave as expected.

Closes https://gitlab.com/gitlab-org/build/team-tasks/issues/71

Merge request reports