Update Dockerfile
Browse files- Dockerfile +7 -7
Dockerfile
CHANGED
@@ -13,14 +13,14 @@ RUN apt-get update && apt-get install -y \
|
|
13 |
|
14 |
# 设置环境变量,可以根据需要修改
|
15 |
ENV NZ_SITE_TITLE="我的哪吒监控"
|
16 |
-
#
|
17 |
-
ENV
|
18 |
-
#
|
19 |
-
ENV NZ_AGENT_PORT=5555
|
20 |
ENV NZ_TLS="true"
|
21 |
ENV NZ_LANG="zh_CN"
|
22 |
-
|
23 |
-
|
|
|
24 |
|
25 |
# 复制并运行脚本
|
26 |
COPY nezha.sh /nezha.sh
|
@@ -32,7 +32,7 @@ RUN mkdir -p /data/nezha/dashboard/data && chmod -R 777 /data/nezha
|
|
32 |
|
33 |
# 暴露端口
|
34 |
EXPOSE 7860
|
35 |
-
EXPOSE 5555
|
36 |
|
37 |
# 设置启动命令
|
38 |
CMD ["/data/nezha/dashboard/app", "-c", "/data/nezha/dashboard/data/config.yaml", "-db", "/data/nezha/dashboard/data/sqlite.db"]
|
|
|
13 |
|
14 |
# 设置环境变量,可以根据需要修改
|
15 |
ENV NZ_SITE_TITLE="我的哪吒监控"
|
16 |
+
# Hugging Face Spaces 默认使用 7860 端口
|
17 |
+
ENV NZ_PORT=7860
|
18 |
+
# ENV NZ_HOSTPORT="example.com:443" # 如果不需要,可以删除此行
|
|
|
19 |
ENV NZ_TLS="true"
|
20 |
ENV NZ_LANG="zh_CN"
|
21 |
+
|
22 |
+
# 设置您的 Hugging Face Space 名称,请替换为您的 Space 名称
|
23 |
+
ENV NZ_SPACE_NAME="nezha"
|
24 |
|
25 |
# 复制并运行脚本
|
26 |
COPY nezha.sh /nezha.sh
|
|
|
32 |
|
33 |
# 暴露端口
|
34 |
EXPOSE 7860
|
35 |
+
EXPOSE 5555 # 如果您使用了 Agent 端口
|
36 |
|
37 |
# 设置启动命令
|
38 |
CMD ["/data/nezha/dashboard/app", "-c", "/data/nezha/dashboard/data/config.yaml", "-db", "/data/nezha/dashboard/data/sqlite.db"]
|