StarrySkyWorld commited on
Commit
a3c6e57
·
verified ·
1 Parent(s): 9a571e5

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +23 -0
Dockerfile ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.11-slim
2
+
3
+ # 安装 git 以便克隆仓库
4
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
5
+
6
+ # 设置工作目录
7
+ WORKDIR /app
8
+
9
+ # 克隆指定的代码库到当前目录
10
+ RUN git clone https://github.com/Starry-Sky-World/EasyAuth-Bot.git .
11
+
12
+ # 安装依赖
13
+ RUN pip install --no-cache-dir -r requirements.txt
14
+
15
+ # 复制启动脚本到容器中
16
+ COPY entrypoint.sh /entrypoint.sh
17
+ RUN chmod +x /entrypoint.sh
18
+
19
+ # 暴露 Hugging Face 要求的 7860 端口
20
+ EXPOSE 7860
21
+
22
+ # 运行启动脚本
23
+ ENTRYPOINT ["/entrypoint.sh"]