Spaces:
Sleeping
Sleeping
File size: 401 Bytes
86cdcde | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | FROM python:3.12-slim
WORKDIR /app
# 安装依赖
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# 复制应用代码
COPY server.py pipeline_v6.py config.py ./
COPY patterns_cn_ref.json writing_intuition_guides.json ./
COPY static/ ./static/
# HF Spaces 要求端口 7860
ENV PORT=7860
EXPOSE 7860
CMD ["uvicorn", "server:app", "--host", "0.0.0.0", "--port", "7860"]
|