cannot use variable from other docker stage
This commit is contained in:
parent
f983fe8481
commit
217ee9a9db
|
|
@ -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"]
|
||||
```
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue