FROM python:3.9 WORKDIR /code COPY ./requirements.txt /code/requirements.txt RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt # 建立靜態檔案目錄 COPY ./static /code/static COPY ./app.py /code/app.py # Hugging Face Spaces 預設對外開放 7860 port CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]