-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
26 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,23 @@ | ||
FROM secondstate/ssvm:latest | ||
ENV PATH="/root/.cargo/bin:${PATH}" | ||
|
||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG RUSTUP_TOOLCHAIN=nightly-2020-10-06 | ||
ENV RUSTUP_HOME=/usr/local/rustup \ | ||
CARGO_HOME=/usr/local/cargo \ | ||
PATH=/usr/local/cargo/bin:$PATH | ||
|
||
# Install rust | ||
RUN curl https://sh.rustup.rs -sSf | sh -s -- -y | ||
RUN rustup update nightly && rustup update stable | ||
RUN rustup target add wasm32-unknown-unknown --toolchain nightly | ||
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y \ | ||
&& cargo install cargo-wasi | ||
RUN rustup toolchain install ${RUSTUP_TOOLCHAIN} \ | ||
&& rustup target add wasm32-unknown-unknown --toolchain ${RUSTUP_TOOLCHAIN} \ | ||
&& rustup target add wasm32-unknown-unknown --toolchain stable \ | ||
&& rustup default stable | ||
|
||
# Install yarn | ||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - | ||
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list | ||
RUN apt update && apt install -y yarn | ||
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add - \ | ||
&& echo "deb https://dl.yarnpkg.com/debian/ stable main" > /etc/apt/sources.list.d/yarn.list | ||
RUN apt update \ | ||
&& apt install -y yarn | ||
|
||
RUN rm -rf /var/lib/apt/lists/* |