Dockerfile 368 B

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