Files
AIEC-new/AIEC-RAG/Dockerfile.cache
2025-10-17 09:31:28 +08:00

15 lines
424 B
Docker
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

FROM aiec-rag:latest
# 安装Redis客户端和gunicorn
RUN pip install redis gunicorn
# 复制带缓存的服务文件
COPY rag_api_server_with_cache.py /app/
# 使用gunicorn启动支持多worker
CMD ["gunicorn", "rag_api_server_with_cache:app", \
"--workers", "10", \
"--worker-class", "uvicorn.workers.UvicornWorker", \
"--bind", "0.0.0.0:8081", \
"--timeout", "120", \
"--keep-alive", "5"]