Dockerfile 272 B

1234567891011121314151617
  1. FROM node:16
  2. RUN apt-get update
  3. RUN apt-get install nginx -y
  4. RUN mkdir -p /opt/app
  5. WORKDIR /opt/app
  6. ADD ./ /opt/app
  7. RUN npm install -g webpack@5.72.0 webpack-cli@4.9.2
  8. RUN npm install
  9. RUN mkdir -p /run/nginx
  10. RUN chmod u+x bootstrap.sh
  11. CMD bash /opt/app/bootstrap.sh