123456789101112131415161718192021222324252627282930313233343536373839 |
- FROM joystream/rust-builder AS builder
- LABEL description="Compiles all workspace artifacts"
- WORKDIR /joystream
- COPY . /joystream
- RUN WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 BUILD_DUMMY_WASM_BINARY=1 cargo clippy --release --all -- -D warnings \
- WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo test --release --all && \
- WASM_BUILD_TOOLCHAIN=nightly-2020-05-23 cargo build --release
- FROM debian:stretch
- LABEL description="Joystream node"
- WORKDIR /joystream
- COPY --from=builder /joystream/target/release/joystream-node /joystream/node
- COPY --from=builder /joystream/target/release/wbuild/joystream-node-runtime/joystream_node_runtime.compact.wasm /joystream/runtime.compact.wasm
- COPY --from=builder /joystream/target/release/chain-spec-builder /joystream/chain-spec-builder
- RUN /joystream/node --version
- RUN b2sum -l 256 /joystream/runtime.compact.wasm
- RUN b2sum -l 512 /joystream/runtime.compact.wasm
- EXPOSE 30333 9933 9944
- VOLUME ["/data", "/keystore"]
- ENTRYPOINT ["/joystream/node"]
|