Dockerfile 268 B

12345678
  1. FROM python:3.11-slim
  2. WORKDIR /app
  3. COPY requirements.txt .
  4. # openpyxl 在 requirements.txt 中缺失,手动补充
  5. RUN pip install --no-cache-dir -r requirements.txt openpyxl
  6. COPY app.py .
  7. EXPOSE 8090
  8. CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8090"]