https://github.com/smeghead/docker-rust-env-template
https://github.com/smeghead/docker-rust-env-template
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/smeghead/docker-rust-env-template
- Owner: smeghead
- Created: 2021-04-27T02:08:58.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2021-04-27T02:19:23.000Z (about 4 years ago)
- Last Synced: 2025-02-07T22:54:12.350Z (4 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Dockerで作るRustの開発環境のテンプレート #
https://qiita.com/toully/items/1b652bec2048eefd3130
## ビルド ##
Dockerfile を配置してビルドする。
```bash
docker build -t rust-env .
```## カレントディレクトリをマウントしてログインする ##
```bash
docker run --rm -e USER=$USER -it -v $(pwd):/project -w /project rust-env
```## プロジェクト作成 ##
```bash
cargo new --bin
```## コンパイルと実行 ##
```bash
cd
cargo run
```