From 217ee9a9db3b1ecb1fa3863ebbafae711eb3d21a Mon Sep 17 00:00:00 2001 From: Mike Kinney Date: Wed, 15 Jan 2020 06:35:48 -0800 Subject: [PATCH] cannot use variable from other docker stage --- rust/content.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rust/content.md b/rust/content.md index a918aa07f..56bbd2fa3 100644 --- a/rust/content.md +++ b/rust/content.md @@ -40,7 +40,7 @@ RUN cargo install --path . FROM debian:buster-slim RUN apt-get update && apt-get install -y extra-runtime-dependencies -COPY --from=builder $CARGO_HOME/bin/myapp /usr/local/bin/myapp +COPY --from=builder /usr/local/cargo/bin/myapp /usr/local/bin/myapp CMD ["myapp"] ```