Dockerfile 395 B

12345678910111213141516171819202122
  1. FROM node:12
  2. RUN apt-get update
  3. RUN apt-get install nginx -y
  4. RUN npm install -g snyk
  5. RUN npm install -g webpack@4.35.3
  6. RUN npm install -g webpack-cli@3.3.5
  7. RUN npm install -g webpack-dev-server@3.7.2
  8. RUN mkdir -p /opt
  9. WORKDIR /opt
  10. ADD package.json /opt/package.json
  11. RUN npm 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