Skip to content

Reduce docker build context for ci build image

What does this MR do?

The ci Dockerfile is the only Dockerfile we have that uses the project's root directory. It itself only adds the files within ./dockerfiles/ci and ./Makefile* so we can reduce the build context that is sent (30kB, down from 200MB) to the daemon to just these files.

Why was this MR needed?

Sending the build context can be slow, and because the .git directory was included, the problem grows over time.

Are there points in the code the reviewer needs to double check?

Does this MR meet the acceptance criteria?

  • Documentation created/updated
  • Added tests for this feature/bug
  • In case of conflicts with master - branch was rebased

What are the relevant issue numbers?

Closes #25876 (closed)

Edited by Arran Walker

Merge request reports