mirror of
https://github.com/nezhahq/nezha.git
synced 2025-01-22 12:48:14 -05:00
⚡️ 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
|
||||
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
|
||||
|
@ -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: 站点标题
|
||||
|
Loading…
Reference in New Issue
Block a user