Dockerfile 364 B

1234567891011121314151617181920
  1. FROM node:14
  2. RUN apt update
  3. RUN apt install nginx -y
  4. RUN npm install -g webpack@5.64.4 webpack-cli@4.9.1
  5. RUN mkdir -p /opt
  6. WORKDIR /opt
  7. ADD package.json /opt/package.json
  8. ADD package-lock.json /opt/package-lock.json
  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