diff --git a/Dockerfile.agent b/Dockerfile.agent index 9770923..10f48c0 100644 --- a/Dockerfile.agent +++ b/Dockerfile.agent @@ -12,16 +12,16 @@ RUN apk --no-cache --no-progress add \ WORKDIR /agent COPY --from=binarybuilder /agent/cmd/agent/app ./app -ENV HOST_PROC /agent/host/proc -ENV HOST_SYS /agent/host/sys -ENV HOST_ETC /agent/host/etc -ENV HOST_VAR /agent/host/var -ENV HOST_RUN /agent/host/run -ENV HOST_DEV /agent/host/dev - -ENV DEBUG false #服务器使用IP时请设置为true +ENV HOST_PROC=/agent/host/proc \ + HOST_SYS=/agent/host/sys \ + HOST_ETC=/agent/host/etc \ + HOST_VAR=/agent/host/var \ + HOST_RUN=/agent/host/run \ + HOST_DEV=/agent/host/dev \ + DEBUG=false ENV [ID, SECRET, SERVER] 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 diff --git a/README.md b/README.md index 9735070..2a70566 100644 --- a/README.md +++ b/README.md @@ -74,7 +74,7 @@ C/S 采用 gRPC 通信,客户端通过添加主机生成的单独 Token 上报 admin: # 多管理员 - 1 #管理员 GitHub ID,复制自己GitHub头像图片地址,/[ID].png - 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 site: brand: 站点标题