123456789101112131415161718192021222324252627282930 |
- FROM joystream/rust-builder AS builder
- LABEL description="compiles and caches dependencies, artifacts and node"
- WORKDIR /joystream
- COPY . /joystream
- RUN mkdir /build-output
- RUN --mount=type=cache,target=/joystream/target \
- --mount=type=cache,target=/root/.cargo/git \
- --mount=type=cache,target=/root/.cargo/registry \
- cargo build --release \
- && cp ./target/release/joystream-node /build-output/joystream-node
- FROM debian:stretch
- LABEL description="Joystream node"
- WORKDIR /joystream
- COPY --from=builder /build-output/joystream-node /joystream/node
- VOLUME ["/data", "/keystore"]
- ENTRYPOINT ["/joystream/node"]
|