Skip to content

Commit

Permalink
Merge pull request docker-library#1391 from Zebradil/patch-1
Browse files Browse the repository at this point in the history
Update cargo install command
  • Loading branch information
tianon authored Jan 7, 2019
2 parents 4b8e8b0 + 694de3d commit e66366d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rust/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 .

CMD ["myapp"]
```
Expand Down

0 comments on commit e66366d

Please sign in to comment.