Browse Source

modified nginx.conf and jenkinsfile

xiaoct 7 years ago
parent
commit
2408747149
2 changed files with 4 additions and 2 deletions
  1. 3 1
      Jenkinsfile
  2. 1 1
      nginx.conf

+ 3 - 1
Jenkinsfile

@@ -2,7 +2,9 @@ pipeline {
     agent {
         dockerfile {
             filename 'Dockerfile'
-            additionalBuildArgs '-p 80:80 --registry-mirror=https://registry.docker-cn.com daemon'
+            additionalBuildArgs '--registry-mirror=https://registry.docker-cn.com daemon'
+            customWorkspace '/usr/bi-web'
+            arg '-p 80:80'
         }
     }
     stages {

+ 1 - 1
nginx.conf

@@ -5,7 +5,7 @@ server {
 	listen 80;
 	server_name 192.168.253.189;
 	access_log /var/log/nginx/fuck.log;
-	root ;
+	root /usr/bi-web;
 	index index.html index.htm;
 	location / {
 	}