Pass docker_image to COPY --from statement #20829
-
I am looking for a way to pass a previous docker build stage into the docker_image(
name="deps",
...
)
docker_image(
...
instructions=[
...
"COPY --from=:deps /bin/app /bin/app",
...
],
) where Unfortunately, this doesn't seem to work right now. Any tips / workarounds? |
Beta Was this translation helpful? Give feedback.
Answered by
cburroughs
Apr 22, 2024
Replies: 1 comment 2 replies
-
Try the recipes at: https://www.pantsbuild.org/blog/2022/08/02/optimizing-python-docker-deploys-using-pants |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
jake-normal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Try the recipes at: https://www.pantsbuild.org/blog/2022/08/02/optimizing-python-docker-deploys-using-pants