Dockerfile 371 B

123456789101112131415161718192021
  1. FROM node:12
  2. RUN apt-get update
  3. RUN apt-get install nginx -y
  4. RUN npm install -g webpack@4.35.3
  5. RUN npm install -g webpack-cli@3.3.5
  6. RUN npm install -g webpack-dev-server@3.7.2
  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