Skip to content

Commit

Permalink
Pin rustup and wasm-pack versions
Browse files Browse the repository at this point in the history
Signed-off-by: Benoit Donneaux <[email protected]>
  • Loading branch information
btlogy committed Feb 3, 2024
1 parent b7bf42b commit d222d16
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d222d16

Please sign in to comment.