File tree Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Expand file tree Collapse file tree 3 files changed +14
-4
lines changed Original file line number Diff line number Diff line change 44! /.git /config
55! /.git /HEAD
66! /crates
7+ ! /cumulus
8+ ! /polkadot
79! /substrate
810! /Cargo.lock
911! /Cargo.toml
Original file line number Diff line number Diff line change @@ -17,11 +17,17 @@ RUN /root/.cargo/bin/rustup target add wasm32-unknown-unknown
1717COPY Cargo.lock /code/Cargo.lock
1818COPY Cargo.toml /code/Cargo.toml
1919
20- # Up until this line all Rust images in this repo should be the same to share the same layers
21-
20+ # Just enough files for `git rev-parse --short HEAD` to work (used in Substrate node build)
21+ COPY .git /code/.git
22+ # Just an empty directory for Git to recognize it is indeed a Git repository
23+ RUN mkdir /code/.git/objects
2224COPY crates /code/crates
25+ COPY cumulus /code/cumulus
26+ COPY polkadot /code/polkadot
2327COPY substrate /code/substrate
2428
29+ # Up until this line all Rust images in this repo should be the same to share the same layers
30+
2531RUN \
2632 /root/.cargo/bin/cargo build --release --bin subspace-farmer && \
2733 mv target/release/subspace-farmer subspace-farmer && \
Original file line number Diff line number Diff line change @@ -17,15 +17,17 @@ RUN /root/.cargo/bin/rustup target add wasm32-unknown-unknown
1717COPY Cargo.lock /code/Cargo.lock
1818COPY Cargo.toml /code/Cargo.toml
1919
20- # Up until this line all Rust images in this repo should be the same to share the same layers
21-
2220# Just enough files for `git rev-parse --short HEAD` to work (used in Substrate node build)
2321COPY .git /code/.git
2422# Just an empty directory for Git to recognize it is indeed a Git repository
2523RUN mkdir /code/.git/objects
2624COPY crates /code/crates
25+ COPY cumulus /code/cumulus
26+ COPY polkadot /code/polkadot
2727COPY substrate /code/substrate
2828
29+ # Up until this line all Rust images in this repo should be the same to share the same layers
30+
2931RUN \
3032 /root/.cargo/bin/cargo build --release --bin subspace-node && \
3133 mv target/release/subspace-node subspace-node && \
You can’t perform that action at this time.
0 commit comments