-
Notifications
You must be signed in to change notification settings - Fork 26
/
Dockerfile
24 lines (18 loc) · 914 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM rust
RUN apt-get update && \
apt-get install libclang-dev -y && \
apt-get install nodejs -y && \
apt-get install npm -y && \
apt-get install binaryen -y
RUN npm install -g n && \
npm install -g yarn && \
n stable
RUN curl -sSf https://sh.rustup.rs/ | sh -s -- --default-toolchain nightly -y
RUN rustup component add rust-src --toolchain nightly-x86_64-unknown-linux-gnu
RUN rustup target add wasm32-unknown-unknown
RUN cargo install cargo-dylint dylint-link
# While Redspot didn't merge `--skip-linting` https://github.com/patractlabs/redspot/pull/181
# we will use our version of `cargo-contract` without linting
# RUN cargo install --force cargo-contract && \
RUN cargo install cargo-contract --git https://github.com/Supercolony-net/cargo-contract --force && \
cargo install contracts-node --git https://github.com/paritytech/substrate-contracts-node.git --force --locked