From d24b7323da87144a98d165f97658e019bfda822a Mon Sep 17 00:00:00 2001 From: German Lashevich Date: Sun, 6 Jan 2019 22:56:22 +0100 Subject: [PATCH] Update cargo install command Using `cargo install` to install the binaries for the package in current working directory is no longer supported, use `cargo install --path .` instead. Also updated image version in the example to the current one. --- rust/content.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rust/content.md b/rust/content.md index 885e0437a..83f4332b2 100644 --- a/rust/content.md +++ b/rust/content.md @@ -13,12 +13,12 @@ Rust is a systems programming language sponsored by Mozilla Research. It is desi The most straightforward way to use this image is to use a Rust container as both the build and runtime environment. In your `Dockerfile`, writing something along the lines of the following will compile and run your project: ```dockerfile -FROM %%IMAGE%%:1.23.0 +FROM %%IMAGE%%:1.31 WORKDIR /usr/src/myapp COPY . . -RUN cargo install +RUN cargo install --path /usr/src/myapp CMD ["myapp"] ```