Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +11 -2
Dockerfile
CHANGED
@@ -1,2 +1,11 @@
|
|
1 |
-
FROM
|
2 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10-slim
|
2 |
+
# 安装pip依赖
|
3 |
+
WORKDIR /workspace
|
4 |
+
COPY requirements.txt .
|
5 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
6 |
+
# 复制你的源码
|
7 |
+
COPY . .
|
8 |
+
# Space 必须监听 0.0.0.0:7860 或 3000,建议 7860!
|
9 |
+
ENV PORT=7860
|
10 |
+
EXPOSE 7860
|
11 |
+
CMD ["python", "openai_ondemand_adapter.py"]
|