17 lines
385 B
Plaintext
17 lines
385 B
Plaintext
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"]
|