Dockerfile 903 B

123456789101112131415161718192021222324252627
  1. FROM joystream/rust-builder AS builder
  2. LABEL description="Compiles all workspace artifacts"
  3. WORKDIR /joystream
  4. COPY . /joystream
  5. RUN cargo build --release
  6. FROM debian:stretch
  7. LABEL description="Joystream node"
  8. WORKDIR /joystream
  9. COPY --from=builder /joystream/target/release/joystream-node /joystream/node
  10. COPY --from=builder /joystream/target/release/wbuild/joystream-node-runtime/joystream_node_runtime.compact.wasm /joystream/runtime.compact.wasm
  11. # confirm it works
  12. RUN /joystream/node --version
  13. EXPOSE 30333 9933 9944
  14. # Use these volumes to persits chain state and keystore, eg.:
  15. # --base-path /data
  16. # optionally separate keystore (otherwise it will be stored in the base path)
  17. # --keystore-path /keystore
  18. # if base-path isn't specified, chain state is stored inside container in ~/.local/share/joystream-node/
  19. # which is not ideal
  20. VOLUME ["/data", "/keystore"]
  21. ENTRYPOINT ["/joystream/node"]