4 ms·
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 / /
by mathfailure 1y ago
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 / /
- gkfasdfasdf 1y agoI 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.