Spaces:
Runtime error
Runtime error
| FROM python:3.10 | |
| # 設定工作目錄 | |
| WORKDIR /code | |
| # 複製 requirements.txt 並安裝套件 | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # 複製所有專案檔案 | |
| COPY . . | |
| # 啟動 FastAPI | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |