123456789101112131415161718192021 |
- FROM node
- RUN apt-get update
- RUN apt-get install nginx -y
- RUN npm install -g webpack
- RUN npm install -g webpack-cli
- RUN npm install -g webpack-dev-server
- 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
|