From c5e2802ce9f789bdab8015a4a5127ebbd1664f6c Mon Sep 17 00:00:00 2001 From: JoYo <> Date: Thu, 18 Feb 2021 17:06:51 -0500 Subject: [PATCH] added rust layer --- docker-compose.yaml | 8 ++++++++ rust.Dockerfile | 10 ++++++++++ 2 files changed, 18 insertions(+) create mode 100644 rust.Dockerfile diff --git a/docker-compose.yaml b/docker-compose.yaml index 9a8d81b..ed64f0d 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -15,3 +15,11 @@ services: dockerfile: winxp.Dockerfile volumes: - .:C:/source/ + + rust_build: + image: rust_build + build: + context: . + dockerfile: rust.Dockerfile + volumes: + - .:C:/source/ diff --git a/rust.Dockerfile b/rust.Dockerfile new file mode 100644 index 0000000..7e312d8 --- /dev/null +++ b/rust.Dockerfile @@ -0,0 +1,10 @@ +# escape=` +FROM win_build + +ADD https://win.rustup.rs C:\docker\rustup-init.exe + +RUN C:\docker\rustup-init.exe --quiet -y +RUN setx path "%path%;C:\Users\ContainerAdministrator\.cargo\bin" + +VOLUME C:\source\ +WORKDIR C:\source\