12345678910111213141516171819 |
- FROM node:14
- RUN apt update
- RUN apt install nginx -y
- RUN npm install -g webpack@5.64.4 webpack-cli@4.9.1
- RUN mkdir -p /opt
- WORKDIR /opt
- ADD package.json /opt/package.json
- RUN npm install
- RUN mkdir -p /run/nginx
- COPY bootstrap.sh /opt/
- RUN chmod u+x /opt/bootstrap.sh
- CMD bash /opt/bootstrap.sh
|