patrickhoefler/dockerfilegraph

Multiple --mount=from=* seem unsupported

iluminae opened this issue · 1 comments

Considering the following reproduction:

FROM docker.io/library/alpine:latest AS base
RUN touch base

FROM base AS base2
RUN touch base2

FROM base AS base3
RUN touch base3

FROM base AS base4
RUN touch base4

FROM base
RUN --mount=from=base2,target=/base2 \
    --mount=from=base3,target=/base3 \
    --mount=from=base4,target=/base4 \
    cp base*/* .
RUN ls base*

the final dag rendered only shows one of the --mount-from connections.
Dockerfile

Hey @iluminae,

thank you very much for your excellent bug report, much appreciated!

As you've probably seen, the fix is already being worked on and should land soon.