File size: 498 Bytes
b36277c
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# 使用Python官方镜像作为基础镜像
FROM python:3.9-slim

# 安装git
RUN apt-get update && apt-get install -y git

# 设置工作目录
WORKDIR /app

# 克隆仓库
RUN git clone https://github.com/w1501052468/aichats-reverse.git .

# 安装依赖
RUN pip install --no-cache-dir -r requirements.txt

# 设置环境变量
ENV APP_SECRET=your_secret_here

# 暴露服务端口(如果需要的话,请替换为实际端口)
EXPOSE 8002

# 运行服务
CMD ["python", "/app/api/main.py"]