feat: 添加飞书集成和改进安全配置 - 集成 lark-oapi 库以支持飞书功能 - 改进 CORS 配置验证器以支持 JSON 格式输入 - 添加安全凭证检查逻辑以防止跨域安全问题 - 在 DirectLLMAdapter 中增加响应解析异常处理 fix: 增强查询参数验证和分页限制 - 为多个路由添加 Query 参数验证器 - 实现 bounded_limit 和 bounded_offset 辅助函数 - 设置查询限制范围为 1-500 之间 - 使用 secrets.compare_digest 提升令牌验证安全性 refactor: 调整文档忽略规则和测试配置 - 更新 .gitignore 文件中的文档路径配置 - 在 smoke 测试中添加必要的环境变量配置 - 重构配置验证器以提高类型兼容性 ```
29 lines
624 B
Docker
29 lines
624 B
Docker
FROM python:3.11-slim
|
|
|
|
ENV PYTHONDONTWRITEBYTECODE=1
|
|
ENV PYTHONUNBUFFERED=1
|
|
|
|
WORKDIR /app
|
|
|
|
COPY environment.yml /app/environment.yml
|
|
RUN pip install --no-cache-dir \
|
|
fastapi==0.115.6 \
|
|
"uvicorn[standard]==0.34.0" \
|
|
sqlalchemy==2.0.36 \
|
|
pymysql==1.1.1 \
|
|
"psycopg[binary]==3.2.3" \
|
|
pydantic-settings==2.7.1 \
|
|
python-dotenv==1.0.1 \
|
|
alembic==1.14.0 \
|
|
httpx==0.28.1 \
|
|
lark-oapi==1.6.8 \
|
|
apscheduler==3.10.4 \
|
|
redis==5.2.1 \
|
|
celery==5.4.0 \
|
|
cryptography==44.0.0 \
|
|
pandas==2.2.3
|
|
|
|
COPY app /app/app
|
|
|
|
CMD ["uvicorn", "app.main:app", "--host", "0.0.0.0", "--port", "8010"]
|