Dockerfile 496 B

12345678910111213141516171819202122232425
  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 /apps
  8. COPY . .
  9. RUN npm install yarn -g
  10. RUN yarn
  11. RUN NODE_ENV=production yarn build:www
  12. FROM ubuntu:18.04
  13. RUN apt-get update && apt-get -y install nginx
  14. COPY --from=builder /apps/packages/apps/build /var/www/html
  15. EXPOSE 80
  16. CMD ["nginx", "-g", "daemon off;"]