XJFKKK commited on
Commit
61b5a2b
·
verified ·
1 Parent(s): f18fa84

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -2,21 +2,23 @@ FROM ubuntu:20.04
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
- # 安装必要的依赖
6
  RUN apt-get update && apt-get install -y \
7
  wget \
8
  curl \
9
  unzip \
10
  grep \
 
11
  && rm -rf /var/lib/apt/lists/*
12
 
13
  # 设置环境变量,可以根据需要修改
14
  ENV NZ_SITE_TITLE="我的哪吒监控"
15
  # Hugging Face Spaces 默认使用 7860 端口
16
  ENV NZ_PORT=7860
17
- ENV NZ_HOSTPORT="example.com:443"
18
  ENV NZ_TLS="true"
19
  ENV NZ_LANG="zh_CN"
 
 
20
 
21
  # 复制并运行脚本
22
  COPY nezha.sh /nezha.sh
@@ -29,5 +31,5 @@ RUN mkdir -p /data/nezha/dashboard/data && chmod -R 777 /data/nezha
29
  # 暴露端口
30
  EXPOSE 7860
31
 
32
- # 设置启动命令,移除未定义的参数 -web
33
  CMD ["/data/nezha/dashboard/app", "-c", "/data/nezha/dashboard/data/config.yaml", "-db", "/data/nezha/dashboard/data/sqlite.db"]
 
2
 
3
  ENV DEBIAN_FRONTEND=noninteractive
4
 
5
+ # 安装必要的依赖,包括 openssl
6
  RUN apt-get update && apt-get install -y \
7
  wget \
8
  curl \
9
  unzip \
10
  grep \
11
+ openssl \
12
  && rm -rf /var/lib/apt/lists/*
13
 
14
  # 设置环境变量,可以根据需要修改
15
  ENV NZ_SITE_TITLE="我的哪吒监控"
16
  # Hugging Face Spaces 默认使用 7860 端口
17
  ENV NZ_PORT=7860
 
18
  ENV NZ_TLS="true"
19
  ENV NZ_LANG="zh_CN"
20
+ # 设置您的 Hugging Face Space 名称
21
+ ENV NZ_SPACE_NAME="your-space-name"
22
 
23
  # 复制并运行脚本
24
  COPY nezha.sh /nezha.sh
 
31
  # 暴露端口
32
  EXPOSE 7860
33
 
34
+ # 设置启动命令
35
  CMD ["/data/nezha/dashboard/app", "-c", "/data/nezha/dashboard/data/config.yaml", "-db", "/data/nezha/dashboard/data/sqlite.db"]