Debian Codegraph @

dockerclient/testdata/multistage/Dockerfile

raw
1 FROM mirror.gcr.io/golang:1.25 as builder
2 WORKDIR /tmp
3 COPY . .
4 RUN echo foo > /tmp/bar
5
6 FROM mirror.gcr.io/busybox:latest AS modifier
7 WORKDIR /tmp
8 COPY --from=builder /tmp/bar /tmp/bar
9 RUN echo foo2 >> /tmp/bar
10
11 FROM mirror.gcr.io/busybox:latest
12 WORKDIR /
13 COPY --from=modifier /tmp/bar /bin/baz
14 COPY dir /var/dir
15
16 RUN echo /bin/baz