Dockerfile 378 B

1234567891011121314151617181920212223
  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
  6. RUN yarn global add webpack-cli
  7. RUN yarn global add webpack-dev-server
  8. RUN mkdir -p /opt
  9. WORKDIR /opt
  10. ADD package.json /opt/package.json
  11. RUN yarn install
  12. RUN mkdir -p /run/nginx
  13. COPY bootstrap.sh /opt/
  14. RUN chmod u+x /opt/bootstrap.sh
  15. CMD bash /opt/bootstrap.sh