Last active
October 25, 2018 12:02
-
-
Save killercup/c06cb8bc361cf224219c89645c65ea35 to your computer and use it in GitHub Desktop.
Rust in docker
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.2" | |
services: | |
rust: | |
image: rust:1.29.2 # alternatively choose one from https://hub.docker.com/u/japaric/ | |
volumes: | |
- type: bind | |
source: './' | |
target: /app/code | |
read_only: true | |
- type: volume | |
source: cargo_cache | |
target: /usr/local/cargo # setting from rust image | |
- type: volume | |
source: target_cache | |
target: /app/target | |
environment: | |
CARGO_TARGET_DIR: /app/target | |
working_dir: /app/code | |
volumes: | |
cargo_cache: | |
target_cache: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment