Dockerfile 353 B

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