Dockerfile 567 B

123456789101112131415161718192021
  1. FROM ubuntu:20.04
  2. WORKDIR /root
  3. RUN apt-get update && apt-get install -y curl gnupg
  4. RUN curl --silent --location https://deb.nodesource.com/setup_16.x | bash -
  5. RUN apt-get update && apt-get install -y nodejs
  6. RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
  7. RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
  8. RUN apt-get update && apt-get install -y yarn
  9. WORKDIR /root/coriolis-web
  10. ADD ./ .
  11. RUN yarn install --production --no-progress
  12. RUN yarn build
  13. ENTRYPOINT [ "yarn", "start" ]
  14. EXPOSE 3000