Dockerfile 569 B

12345678910111213
  1. FROM docker.finogeeks.club/base/node-nginx:latest
  2. MAINTAINER luqianyu@finogeeks.com
  3. ADD nginx.conf /etc/nginx/nginx.conf
  4. WORKDIR /web
  5. COPY ./ /web
  6. # RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g;s/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list \
  7. RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories \
  8. && npm install -g pm2 --registry=https://registry.npm.taobao.org \
  9. && apk add zip \
  10. && apk add curl \
  11. && apk add git \
  12. && npm install -g yarn --registry=https://registry.npm.taobao.org
  13. CMD pm2 start pm2.json && pm2 log