back

by kristjansson·4y ago·view on hn ↗
Multistage builds are a better solution for this. Write as many steps as required in the build image and copy only what’s needed into the runtime image in a single COPY command