Dockerfile 778 B

1234567891011121314151617181920212223242526
  1. FROM joystream/rust-builder AS builder
  2. LABEL description="compiles and caches dependencies, artifacts and node"
  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. # confirm it works
  11. RUN /joystream/node --version
  12. EXPOSE 30333 9933 9944
  13. # Use these volumes to persits chain state and keystore, eg.:
  14. # --base-path /data
  15. # optionally separate keystore (otherwise it will be stored in the base path)
  16. # --keystore-path /keystore
  17. # if base-path isn't specified, chain state is stored inside container in ~/.local/share/joystream-node/
  18. # which is not ideal
  19. VOLUME ["/data", "/keystore"]
  20. ENTRYPOINT ["/joystream/node"]