Commit 85738ef 1 parent 7e23e95 commit 85738ef Copy full SHA for 85738ef
File tree 3 files changed +7
-0
lines changed
3 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 196
196
docker_build_args+=(
197
197
--build-arg OA=$OA
198
198
--build-arg VC=$VC
199
+ --build-arg CHAIN_NETWORK=$network
199
200
)
200
201
201
202
eval $which_build_proc
Original file line number Diff line number Diff line change @@ -31,15 +31,21 @@ COPY pallets pallets
31
31
COPY crates crates
32
32
COPY standalone standalone
33
33
COPY Cargo.toml Cargo.lock rustfmt.toml rust-toolchain.toml Makefile ./
34
+ COPY scripts/wasm_overrides ./wasm_overrides
34
35
35
36
RUN make node
36
37
37
38
# # We do not need the Rust toolchain to run the binary!
38
39
FROM ubuntu:20.04 AS runtime
40
+ ARG https_proxy
41
+ ARG http_proxy
42
+ ARG CHAIN_NETWORK
39
43
40
44
WORKDIR /opt/cess
41
45
42
46
COPY --from=builder /node/target/release/cess-node .
47
+ COPY --from=builder /node/wasm_overrides/ .wasm_overrides
48
+ RUN if [ "$CHAIN_NETWORK" = "testnet" ]; then ln -s ./.wasm_overrides/testnet ./wasms; else rm -rf .wasm_overrides; fi
43
49
RUN apt-get update && apt-get install -y curl && apt-get clean -y && apt-get autoremove
44
50
45
51
HEALTHCHECK --interval=30s --timeout=5s --start-period=1800s --retries=10 \
You can’t perform that action at this time.
0 commit comments