Dockerfile 318 B

12345678910111213141516171819
  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. 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