Skip to content

Commit

Permalink
Merge pull request #185 from LeastAuthority/177.pin-rust-wasm
Browse files Browse the repository at this point in the history
Pin rustup and wasm-pack versions
  • Loading branch information
btlogy authored Feb 3, 2024
2 parents b7bf42b + c0d014f commit 9a8a491
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions client/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,15 @@ 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 \
&& rm -f rustup-init
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 9a8a491

Please sign in to comment.