Follow-up from "Update GitLab CI image to include git lfs"
The following discussion from !2124 (merged) should be addressed:
-
@ajwalker started a discussion: (+3 comments) My larger concern is that by using the project's root, we're sending more build context than we probably need to. We have a
.dockerignore
file, but there's not many rules. We should probably either look to reduce the build context by being strict about the directory we use (difficult here, as the Makefile's are in the project root), or update.dockerignore
to at the very least ignore.git
. Ignoring.git
reduces the build context from 200MB to around about 50MB for me, taking a lot less time to send the context to the daemon. This could probably be further reduced by only sending what we need.