Dockerfile 425 B

123456789101112131415161718192021222324
  1. FROM node:11
  2. RUN apt-get update
  3. RUN apt-get install nginx -y
  4. RUN npm install -g yarn
  5. RUN yarn global add snyk
  6. RUN yarn global add webpack@4.35.3
  7. RUN yarn global add webpack-cli@3.3.5
  8. RUN yarn global add webpack-dev-server@3.7.2
  9. RUN mkdir -p /opt
  10. WORKDIR /opt
  11. ADD package.json /opt/package.json
  12. RUN yarn install
  13. RUN mkdir -p /run/nginx
  14. COPY bootstrap.sh /opt/
  15. RUN chmod u+x /opt/bootstrap.sh
  16. CMD bash /opt/bootstrap.sh