更新Dockerfile以安装编译依赖并添加新Python包,同时更新Chroma数据库和二进制文件
This commit is contained in:
parent
4a53df8fb1
commit
7ca3228dd5
|
|
@ -3,16 +3,17 @@ FROM registry.t-aaron.com/python:3.11-slim
|
|||
|
||||
WORKDIR /app
|
||||
|
||||
# 安装系统依赖(PDF、文档处理等)
|
||||
# 安装系统依赖(编译 psycopg2、文档处理等)
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
gcc \
|
||||
build-essential \
|
||||
libpq-dev \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
# 复制依赖文件(排除 Windows 专用包 win32_setctime)
|
||||
COPY requirements.txt .
|
||||
RUN grep -v '^win32_setctime' requirements.txt > /tmp/requirements.txt \
|
||||
&& pip install --no-cache-dir -r /tmp/requirements.txt
|
||||
&& pip install --no-cache-dir -r /tmp/requirements.txt \
|
||||
&& pip install --no-cache-dir fastapi-cdn-host langchain-tavily langgraph-checkpoint-postgres
|
||||
|
||||
# 复制项目代码
|
||||
COPY . .
|
||||
|
|
|
|||
Binary file not shown.
Binary file not shown.
Loading…
Reference in New Issue