While the "canonical" _build subdirectory in the source tree is ignored when copying the sources into the OCI image (when using make ci), there may be other directories and/or files and some of them may cause issues when copying them (e.g. if they're other overlayfs mounts).
The sane way would be to just copy the files tracked in git. I can't see a way to do that easily with the COPY instruction in the Dockerfile but there might be other ways.
While the "canonical"
_build
subdirectory in the source tree is ignored when copying the sources into the OCI image (when usingmake ci
), there may be other directories and/or files and some of them may cause issues when copying them (e.g. if they're other overlayfs mounts).The sane way would be to just copy the files tracked in git. I can't see a way to do that easily with the
COPY
instruction in the Dockerfile but there might be other ways.