-
Notifications
You must be signed in to change notification settings - Fork 162
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Dockerignore: convert to whitelist #738
base: next
Are you sure you want to change the base?
Conversation
* convert dockerignore from blacklist-based to whitelist * decrease docker build context size significantly * make docker builds less dependent on local state (e.g. local node_modules in submodules) * add script for checking docker build context * add CI tests to monitor if surprisingly large changes are made to the build context
bb9f990
to
5699ebe
Compare
Unfortunately generating |
Currently, /usr/odk# cat .git
gitdir: ../.git/modules/server |
Could we maybe delete it after the build step in the docker file? |
That could be done, but the file itself looks harmless. |
Current statsNote that listed context sizes are less in CI. This is demonstrated in #894.
|
Update to #361
significantly(most savings would come from excluding .git dirs)To check build context locally, run:
To check against previous
.dockerignore
: