From c1bbe8cabcbfcf527d3d4ab3ad8ce8ff9ec7d38f Mon Sep 17 00:00:00 2001 From: dark64 Date: Wed, 5 Feb 2020 15:46:16 +0100 Subject: [PATCH] Update Dockerfile.env --- zokrates_js/Dockerfile.env | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/zokrates_js/Dockerfile.env b/zokrates_js/Dockerfile.env index 6343d510..bbf62823 100644 --- a/zokrates_js/Dockerfile.env +++ b/zokrates_js/Dockerfile.env @@ -1,6 +1,9 @@ FROM node:10 SHELL ["/bin/bash", "-c"] +ARG RUST_VERSION=nightly +ARG WASM_PACK_VERSION=0.8.1 + ENV RUSTUP_HOME=/usr/local/rustup \ CARGO_HOME=/usr/local/cargo \ PATH=/usr/local/cargo/bin:$PATH @@ -13,10 +16,10 @@ RUN set -eux; \ libc6-dev \ ; \ \ - curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain nightly; \ + curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --no-modify-path --default-toolchain $RUST_VERSION; \ chmod -R a+w $RUSTUP_HOME $CARGO_HOME; \ rustup --version; \ cargo --version; \ rustc --version; -RUN cargo install wasm-pack --version 0.8.1 \ No newline at end of file +RUN cargo install wasm-pack --version $WASM_PACK_VERSION \ No newline at end of file