Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
mathfailure
· 1y ago · 0 comments
If the idea was to merge different layers - why not do something like this instead?
FROM your_image as initial
FROM scratch
COPY --from=initial / /
Comments
[–]
gkfasdfasdf
1y ago
I guess one advantage of the author's approach is that any apt-get's etc done in building the initial image can reuse the host package cache.