Dockerfile 554 B

1234567891011121314151617181920212223242526
  1. FROM ubuntu:18.04 as builder
  2. # Install any needed packages
  3. RUN apt-get update && apt-get install -y curl git gnupg
  4. # install nodejs
  5. RUN curl -sL https://deb.nodesource.com/setup_10.x | bash -
  6. RUN apt-get install -y nodejs
  7. WORKDIR /app
  8. RUN git clone https://github.com/polkadot-js/apps
  9. WORKDIR /app/apps
  10. RUN npm install yarn -g
  11. RUN yarn
  12. RUN NODE_ENV=production yarn build
  13. FROM ubuntu:18.04
  14. RUN apt-get update && apt-get -y install nginx
  15. COPY --from=builder /app/apps/packages/apps/build /var/www/html
  16. EXPOSE 80
  17. CMD ["nginx", "-g", "daemon off;"]