1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00

Update Dockerfile.env

This commit is contained in:
dark64 2020-02-05 15:46:16 +01:00
parent 272e7465ef
commit c1bbe8cabc

View file

@ -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