Spaces:
Sleeping
Sleeping
Commit ·
b549955
1
Parent(s): 288fd8b
fix : runtime error
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
|
@@ -14,7 +14,7 @@ COPY requirements.txt .
|
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
# 複製專案檔案
|
| 17 |
-
|
| 18 |
|
| 19 |
# FastAPI 使用 uvicorn 啟動
|
| 20 |
-
CMD ["uvicorn", "
|
|
|
|
| 14 |
RUN pip install --no-cache-dir -r requirements.txt
|
| 15 |
|
| 16 |
# 複製專案檔案
|
| 17 |
+
COPY . .
|
| 18 |
|
| 19 |
# FastAPI 使用 uvicorn 啟動
|
| 20 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|