Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ FROM ubuntu:22.04

# Constants
ARG VERSION_RUST="1.86.0"
ARG VERSION_SC_META="0.57.1"
ARG VERSION_SC_META="0.59.0"
ARG VERSION_WASM_OPT="0.116.1"
ARG TARGETPLATFORM

Expand All @@ -21,7 +21,7 @@ RUN pip3 install toml==0.10.2 semver==3.0.0-dev.4
# Install rust
RUN wget -O rustup.sh https://sh.rustup.rs && \
chmod +x rustup.sh && \
CARGO_HOME=/rust RUSTUP_HOME=/rust ./rustup.sh --verbose --default-toolchain ${VERSION_RUST} --profile minimal --target wasm32-unknown-unknown -y && \
CARGO_HOME=/rust RUSTUP_HOME=/rust ./rustup.sh --verbose --default-toolchain ${VERSION_RUST} --profile minimal -y && \
rm rustup.sh && \
chmod -R 777 /rust && \
rm -rf /rust/registry
Expand All @@ -30,6 +30,9 @@ RUN wget -O rustup.sh https://sh.rustup.rs && \
RUN PATH="/rust/bin:${PATH}" CARGO_HOME=/rust RUSTUP_HOME=/rust cargo install multiversx-sc-meta --version ${VERSION_SC_META} --locked && \
rm -rf /rust/registry

# Install wasm32 target
RUN PATH="/rust/bin:${PATH}" CARGO_HOME=/rust RUSTUP_HOME=/rust sc-meta install wasm32

# Install wasm-opt
RUN PATH="/rust/bin:${PATH}" CARGO_HOME=/rust RUSTUP_HOME=/rust cargo install wasm-opt --version ${VERSION_WASM_OPT} --locked && \
rm -rf /rust/registry
Expand Down