Update Dockerfile
Browse files- Dockerfile +16 -1
Dockerfile
CHANGED
|
@@ -1 +1,16 @@
|
|
| 1 |
-
FROM
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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"]
|