Dockerfile 308 B

12345678910111213141516171819
  1. FROM node:12
  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. RUN npm install -g webpack@5.27.2 webpack-cli@4.5.0
  8. RUN npm install
  9. RUN mkdir -p /run/nginx
  10. COPY bootstrap.sh /opt/
  11. RUN chmod u+x /opt/bootstrap.sh
  12. CMD bash /opt/bootstrap.sh