feat: variable for the previous Dockerfile stage
andrewrynhard opened this issue · 0 comments
andrewrynhard commented
Multi-stage builds allow for referencing different stages:
FROM scratch as example
FROM scratch
COPY --from=example / /
It would be nice if we could reference the previous stage with something like
COPY --from={{ .PreviousStage }}}