|
| 1 | +# delete images - docker rmi $(docker images -q) -f |
| 2 | +# delete containers - docker rm $(docker ps -a -q) -f |
| 3 | + |
1 | 4 | FROM phusion/baseimage:0.10.1 |
2 | 5 | LABEL maintainer "[email protected]" |
3 | 6 |
|
| 7 | +ARG POLKADOT_VERSION=v0.2 |
4 | 8 | RUN apt-get update && \ |
5 | 9 | apt-get upgrade -y && \ |
6 | 10 | apt-get install -y cmake pkg-config libssl-dev && \ |
7 | | - curl https://sh.rustup.rs -sSf | sh && \ |
| 11 | + curl https://sh.rustup.rs -sSf | sh -s -- -y && \ |
| 12 | + echo 'PATH="$/root/.cargo/bin:$PATH";' >> ~/.bash_profile && \ |
| 13 | + . ~/.bash_profile && . /root/.cargo/env && \ |
| 14 | + which rustup && which cargo && \ |
8 | 15 | rustup update nightly && \ |
9 | 16 | rustup target add wasm32-unknown-unknown --toolchain nightly && \ |
10 | | - rustup update stable && \ |
11 | | - cargo install --git https://github.com/alexcrichton/wasm-gc && \ |
12 | | - git clone https://github.com/paritytech/polkadot.git && \ |
13 | | - cd polkadot && \ |
14 | | - ./build.sh && \ |
15 | | - cargo build |
| 17 | + rustup update stable && rustup default stable && \ |
| 18 | + cargo install --git https://github.com/alexcrichton/wasm-gc --force && \ |
| 19 | + cargo install --git https://github.com/pepyakin/wasm-export-table.git --force && \ |
| 20 | + apt-get install -y git vim curl && \ |
| 21 | + git clone https://github.com/paritytech/polkadot.git && cd polkadot && \ |
| 22 | + git fetch origin ${POLKADOT_VERSION}:${POLKADOT_VERSION} && \ |
| 23 | + git checkout ${POLKADOT_VERSION} && \ |
| 24 | + ./build.sh && cargo build |
16 | 25 |
|
17 | 26 | WORKDIR /polkadot |
18 | 27 | CMD ["/bin/sh", "polkadot"] |
0 commit comments