4 ms·
If doing this sort of thing, make sure to accomplish it in a single step (image layer) in the Dockerfile. Otherwise you won't be doing any good as the "removed
by zenlikethat 11y ago
If doing this sort of thing, make sure to accomplish it in a single step (image layer) in the Dockerfile. Otherwise you won't be doing any good as the "removed" files actually persist behind a layer which specifies them as removed.
- justinsaccount 11y agoI've been using docker-squash for that. This way I can take advantage of layer caching during development, and still have a small image for uploading.