Create Dockerfile
Browse files- Dockerfile +10 -0
Dockerfile
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.9-slim
|
| 2 |
+
WORKDIR /app
|
| 3 |
+
COPY . /app
|
| 4 |
+
# 安装依赖
|
| 5 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 6 |
+
# 设置环境变量(如有需要)
|
| 7 |
+
ENV OPENAI_API_BASE_URLS="http://example.com/v1"
|
| 8 |
+
ENV OPENAI_API_KEYS="Ga_test_key1"
|
| 9 |
+
# 启动应用 (假设你的应用监听 0.0.0.0:7860)
|
| 10 |
+
CMD ["python", "uvicorn_boot.py"]
|