RAGflow/Dockerfile

30 lines
738 B
Docker
Raw Normal View History

# 使用 RAGFlow v0.17.2-slim 镜像作为基础
FROM infiniflow/ragflow:v0.17.2-slim
2025-03-24 11:19:28 +08:00
# 设置工作目录(与基础镜像保持一致)
2025-03-24 11:19:28 +08:00
WORKDIR /ragflow
# 复制 Python 相关代码目录
COPY api ./api
COPY conf ./conf
COPY deepdoc ./deepdoc
COPY rag ./rag
COPY agent ./agent
COPY graphrag ./graphrag
COPY agentic_reasoning ./agentic_reasoning
2025-03-24 11:19:28 +08:00
# 复制 Python 依赖定义文件
COPY pyproject.toml ./pyproject.toml
COPY uv.lock ./uv.lock
2025-03-24 11:19:28 +08:00
# 复制前端源代码目录
COPY web ./web
2025-03-24 11:19:28 +08:00
# 复制 Docker 相关文件
COPY docker/service_conf.yaml.template ./conf/service_conf.yaml.template
COPY docker/entrypoint.sh ./entrypoint.sh
2025-03-24 11:19:28 +08:00
RUN chmod +x ./entrypoint.sh
2025-03-24 11:19:28 +08:00
# 重新构建前端应用
RUN cd web && npm install && npm run build