dragg2 commited on
Commit
1e283de
·
verified ·
1 Parent(s): 7d4fcf0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +16 -1
Dockerfile CHANGED
@@ -1 +1,16 @@
1
- FROM zyphrzero/z-ai2api-python:latest
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.12-slim
2
+
3
+ RUN apt-get update && apt-get install -y git && rm -rf /var/lib/apt/lists/*
4
+
5
+ WORKDIR /app
6
+
7
+ # 克隆到 /app 内
8
+ RUN git clone https://github.com/ZyphrZero/z.ai2api_python.git .
9
+
10
+ RUN pip install --no-cache-dir -r requirements.txt
11
+
12
+ RUN mkdir logs && chmod 777 logs
13
+
14
+ EXPOSE 8080
15
+
16
+ CMD ["python", "main.py"]