I have a large monorepo that I'm using as a docker context. The src for the repo is only 250MB, but many of the sub-projects have .gitignored virtualenvs, npm_modules, etc.
It appears that one or many of these .gitignores didn't make it into .dockerignore, because I'm seeing 5GB of context being transmitted on my machine, which is both slow, and I want to debug what's missing from .dockerignore.
Is there a way to get a list of the files being sent as part of the docker context so I can debug what's in .gitignore that's missing from .dockerignore?
Not directly that I know of, but indirectly it wouldn't be that hard. You can
COPYthe entire build context into an image and then do whatever you want with that content.