dockerfiles/rust

17 lines
385 B
Plaintext
Raw Normal View History

2024-05-29 01:30:15 +00:00
FROM ubuntu:18.04
RUN \
apt-get update && \
apt-get install -yy curl gcc git make && \
rm -rf /var/lib/apt/lists/*
RUN curl -Lo rustup.sh https://sh.rustup.rs && \
sh rustup.sh --default-toolchain nightly --no-modify-path -y && \
rm rustup.sh
ENV PATH=$PATH:/bin:/root/.cargo/bin
WORKDIR /src
RUN rustup target add wasm32-unknown-unknown
CMD ["cargo", "build"]