Dockerfile 281 B

123456789101112131415161718
  1. FROM node
  2. RUN apt-get update
  3. RUN apt-get install nginx -y
  4. RUN npm install -g webpack
  5. RUN mkdir -p /opt
  6. WORKDIR /opt
  7. ADD package.json /opt/package.json
  8. RUN npm install
  9. RUN mkdir -p /run/nginx
  10. EXPOSE 80
  11. CMD nginx -c /opt/app/nginx.conf; cd /opt/app; npm run development-watch