distributor-node.Dockerfile 680 B

12345678910111213141516171819202122232425
  1. FROM --platform=linux/x86-64 node:14 as builder
  2. WORKDIR /joystream
  3. COPY ./types types
  4. COPY ./metadata-protobuf metadata-protobuf
  5. COPY ./distributor-node distributor-node
  6. COPY ./distributor-node/config/docker/config.docker.yml config.yml
  7. COPY ./yarn.lock yarn.lock
  8. COPY ./package.json package.json
  9. EXPOSE 3334
  10. RUN yarn --frozen-lockfile
  11. RUN yarn workspace @joystream/types build
  12. RUN yarn workspace @joystream/metadata-protobuf build
  13. RUN yarn workspace @joystream/distributor-cli build
  14. # Clean unneeded files
  15. RUN find . -name "node_modules" -type d -prune
  16. RUN yarn --frozen-lockfile --production
  17. RUN yarn cache clean
  18. ENTRYPOINT ["yarn", "joystream-distributor"]
  19. CMD ["start"]