Dockerfile 349 B

123456789101112131415161718192021
  1. FROM node
  2. RUN apt-get update
  3. RUN apt-get install nginx -y
  4. RUN npm install -g webpack
  5. RUN npm install -g webpack-cli
  6. RUN npm install -g webpack-dev-server
  7. RUN mkdir -p /opt
  8. WORKDIR /opt
  9. ADD package.json /opt/package.json
  10. RUN npm install
  11. RUN mkdir -p /run/nginx
  12. COPY bootstrap.sh /opt/
  13. RUN chmod u+x /opt/bootstrap.sh
  14. CMD bash /opt/bootstrap.sh