Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
zenlikethat
10y ago
0 comments
Save
Share
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.
0 comments
1 comments · 1 top-level
top
newest
oldest
justinsaccount
10y ago
I'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.
j
/
k
navigate · click thread line to collapse