Update Dockerfile.env
This commit is contained in:
parent
272e7465ef
commit
c1bbe8cabc
1 changed files with 5 additions and 2 deletions
|
@ -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
|
||||
RUN cargo install wasm-pack --version $WASM_PACK_VERSION
|
Loading…
Reference in a new issue