Browse Source

fix: dockerfile config

luqianyu 11 months ago
parent
commit
fb0f03ffec
2 changed files with 2 additions and 1 deletions
  1. 1 0
      Dockerfile
  2. 1 1
      pm2.json

+ 1 - 0
Dockerfile

@@ -1,5 +1,6 @@
 FROM docker.finogeeks.club/base/node-nginx:latest
 MAINTAINER luqianyu@finogeeks.com
+ADD nginx.conf /etc/nginx/nginx.conf
 WORKDIR /web
 COPY ./ /web
 # RUN sed -i 's/deb.debian.org/mirrors.aliyun.com/g;s/security.debian.org/mirrors.aliyun.com/g' /etc/apt/sources.list \

+ 1 - 1
pm2.json

@@ -14,7 +14,7 @@
     // },
     {
       "name": "nginx",
-      "script": "nginx -c /web/nginx.conf"
+      "script": "nginx"
     }
   ]
 }