Dockerfile 301 B

12345678910111213141516171819
  1. FROM node
  2. RUN apt-get update
  3. RUN apt-get install nginx -y
  4. RUN npm install -g yarn
  5. RUN yarn global add webpack@1.14.0
  6. RUN mkdir -p /opt
  7. WORKDIR /opt
  8. ADD package.json /opt/package.json
  9. RUN yarn install
  10. RUN mkdir -p /run/nginx
  11. EXPOSE 80
  12. CMD nginx -c /opt/app/nginx.conf; cd /opt/app; yarn run dev