pioneer.Dockerfile 375 B

123456789101112131415161718
  1. FROM node:14 as builder
  2. WORKDIR /joystream
  3. COPY . /joystream
  4. RUN yarn
  5. RUN NODE_ENV=production yarn workspace @joystream/types build
  6. RUN NODE_ENV=production yarn workspace pioneer build
  7. FROM ubuntu:18.04
  8. RUN apt-get update && apt-get -y install nginx
  9. COPY --from=builder /joystream/pioneer/packages/apps/build /var/www/html
  10. EXPOSE 80
  11. CMD ["nginx", "-g", "daemon off;"]