<#20829 Pass docker_image to COPY --from statement...
# github-notifications
c
#20829 Pass docker_image to COPY --from statement New discussion created by jake-normal I am looking for a way to pass a previous docker build stage into the
--from
field of a docker COPY statement. Something like this:
Copy code
docker_image(
    name="deps",
    ...
)

docker_image(
    ...
    instructions=[
        ...
        "COPY --from=:deps /bin/app /bin/app",
        ...
    ],
)
where
:deps
in
--from=:deps
references the previous
deps
stage. Unfortunately, this doesn't seem to work right now. Any tips / workarounds? pantsbuild/pants