⚡️ optimize docker layer
This commit is contained in:
		
							parent
							
								
									bbd25ab183
								
							
						
					
					
						commit
						c914c12337
					
				@ -12,16 +12,16 @@ RUN apk --no-cache --no-progress add \
 | 
				
			|||||||
WORKDIR /agent
 | 
					WORKDIR /agent
 | 
				
			||||||
COPY --from=binarybuilder /agent/cmd/agent/app ./app
 | 
					COPY --from=binarybuilder /agent/cmd/agent/app ./app
 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENV HOST_PROC /agent/host/proc
 | 
					ENV HOST_PROC=/agent/host/proc \
 | 
				
			||||||
ENV HOST_SYS /agent/host/sys
 | 
					    HOST_SYS=/agent/host/sys \
 | 
				
			||||||
ENV HOST_ETC /agent/host/etc
 | 
					    HOST_ETC=/agent/host/etc \
 | 
				
			||||||
ENV HOST_VAR /agent/host/var
 | 
					    HOST_VAR=/agent/host/var \
 | 
				
			||||||
ENV HOST_RUN /agent/host/run
 | 
					    HOST_RUN=/agent/host/run \
 | 
				
			||||||
ENV HOST_DEV /agent/host/dev
 | 
					    HOST_DEV=/agent/host/dev \
 | 
				
			||||||
 | 
					    DEBUG=false
 | 
				
			||||||
ENV DEBUG false #服务器使用IP时请设置为true
 | 
					 | 
				
			||||||
 | 
					
 | 
				
			||||||
ENV [ID, SECRET, SERVER]
 | 
					ENV [ID, SECRET, SERVER]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
VOLUME ["/agent/host/proc", "/agent/host/sys", "/agent/host/etc", "/agent/host/var", "/agent/host/run", "/agent/host/dev"]
 | 
					VOLUME ["/agent/host/proc", "/agent/host/sys", "/agent/host/etc", "/agent/host/var", "/agent/host/run", "/agent/host/dev"]
 | 
				
			||||||
 | 
					
 | 
				
			||||||
CMD /agent/app -s $SERVER -i $ID -p $SECRET -d $DEBUG
 | 
					CMD /agent/app -s $SERVER -i $ID -p $SECRET -d $DEBUG
 | 
				
			||||||
 | 
				
			|||||||
@ -74,7 +74,7 @@ C/S 采用 gRPC 通信,客户端通过添加主机生成的单独 Token 上报
 | 
				
			|||||||
      admin: # 多管理员
 | 
					      admin: # 多管理员
 | 
				
			||||||
        - 1 #管理员 GitHub ID,复制自己GitHub头像图片地址,/[ID].png
 | 
					        - 1 #管理员 GitHub ID,复制自己GitHub头像图片地址,/[ID].png
 | 
				
			||||||
        - 2
 | 
					        - 2
 | 
				
			||||||
      clientid: GitHub Oauth App clientID # 在 https://github.com/settings/developers 创建,无需审核
 | 
					      clientid: GitHub Oauth App clientID # 在 https://github.com/settings/developers 创建,无需审核 Callback 填 http(s)://域名或IP/oauth2/callback
 | 
				
			||||||
      clientsecret: client secret
 | 
					      clientsecret: client secret
 | 
				
			||||||
    site:
 | 
					    site:
 | 
				
			||||||
      brand: 站点标题
 | 
					      brand: 站点标题
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user