https://github.com/netgusto/docker-rust
Rust in a container
https://github.com/netgusto/docker-rust
Last synced: 6 days ago
JSON representation
Rust in a container
- Host: GitHub
- URL: https://github.com/netgusto/docker-rust
- Owner: netgusto
- Created: 2016-05-18T07:35:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-05-18T08:59:53.000Z (over 9 years ago)
- Last Synced: 2025-01-29T02:45:23.106Z (12 months ago)
- Size: 1000 Bytes
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Rust in a container
Installs rustup.rs in a container.
## Build
```bash
$ git clone https://github.com/netgusto/docker-rust.git docker-rust
$ cd docker-rust
$ docker build -t my:rust .
```
## Run
```bash
$ docker run -v `pwd`:/source -it my:rust /bin/bash
```
## Mount your cargo cache (speed up builds)
```bash
$ docker run -v ~/.cargo/registry:/root/.cargo/registry -v `pwd`:/source -it my:rust /bin/bash
```