From d222d166331c7604f6e2ac5be20f254155737420 Mon Sep 17 00:00:00 2001 From: Benoit Donneaux Date: Sat, 3 Feb 2024 01:46:31 +0100 Subject: [PATCH] Pin rustup and wasm-pack versions Signed-off-by: Benoit Donneaux --- client/Dockerfile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/client/Dockerfile b/client/Dockerfile index 01ea869c..5809fe4e 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -23,11 +23,14 @@ RUN DIRS="/usr/src/app" && \ # Switch to non-root user USER ${user} -# Install latest rust on top of it -# FIXME: make it reproducible! -RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y +# Install the rust toolchain +WORKDIR /home/${user} +RUN curl --proto '=https' --tlsv1.2 -sSf --output rustup-init \ + https://static.rust-lang.org/rustup/archive/1.26.0/x86_64-unknown-linux-musl/rustup-init \ + && chmod +x rustup-init \ + && ./rustup-init -y --profile minimal ENV PATH="/home/${user}/.cargo/bin:${PATH}" # Install wasm-pack to build the WebAssembly packages -# FIXME: make it reproducible! -RUN curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh +RUN cargo install --version 0.12.1 wasm-pack \ + && rm -rf /home/${user}/.cargo/registry