Dockerfile 446 B

1234567891011121314151617
  1. FROM ubuntu:20.04
  2. ARG DEBIAN_FRONTEND=noninteractive
  3. ARG RUST_TOOLCHAIN=stable
  4. RUN apt update \
  5. && apt install -y \
  6. build-essential \
  7. curl
  8. RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
  9. ENV PATH=/root/.cargo/bin:$PATH
  10. RUN rustup update \
  11. && rustup toolchain install $RUST_TOOLCHAIN \
  12. && rustup default $RUST_TOOLCHAIN \
  13. && rustup target add wasm32-wasi --toolchain $RUST_TOOLCHAIN