修改Dockerfile

This commit is contained in:
2025-10-27 10:34:16 +08:00
parent bdf3f62e36
commit 8086a73f9f
5 changed files with 10 additions and 7516 deletions

View File

@@ -145,7 +145,8 @@ USER root
WORKDIR /ragflow
# install dependencies from uv.lock file
COPY pyproject.toml uv.lock ./
COPY pyproject.toml ./
RUN uv lock --python 3.10
# https://github.com/astral-sh/uv/issues/10462
# uv records index url into uv.lock but doesn't failover among multiple indexes
@@ -161,10 +162,8 @@ RUN --mount=type=cache,id=ragflow_uv,target=/root/.cache/uv,sharing=locked \
uv sync --python 3.10 --frozen --all-extras; \
fi
COPY web web
COPY docs docs
RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked \
cd web && npm install && npm run build
RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked
COPY .git /ragflow/.git
@@ -190,7 +189,6 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
ENV PYTHONPATH=/ragflow/
COPY web web
COPY api api
COPY conf conf
COPY deepdoc deepdoc
@@ -198,7 +196,7 @@ COPY rag rag
COPY agent agent
COPY graphrag graphrag
COPY agentic_reasoning agentic_reasoning
COPY pyproject.toml uv.lock ./
COPY pyproject.toml ./
COPY mcp mcp
COPY plugin plugin
@@ -206,8 +204,7 @@ COPY docker/service_conf.yaml.template ./conf/service_conf.yaml.template
COPY docker/entrypoint.sh ./
RUN chmod +x ./entrypoint*.sh
# Copy compiled web pages
COPY --from=builder /ragflow/web/dist /ragflow/web/dist
COPY --from=builder /ragflow/VERSION /ragflow/VERSION
ENTRYPOINT ["./entrypoint.sh"]

View File

@@ -94,7 +94,7 @@ SVR_HTTP_PORT=9380
# The RAGFlow Docker image to download.
# Defaults to the v0.20.5-slim edition, which is the RAGFlow Docker image without embedding models.
RAGFLOW_IMAGE=infiniflow/ragflow:v0.20.5-slim
RAGFLOW_IMAGE=infiniflow/ragflow:fastapi
#
# To download the RAGFlow Docker image with embedding models, uncomment the following line instead:
# RAGFLOW_IMAGE=infiniflow/ragflow:v0.20.5

View File

@@ -181,7 +181,7 @@ if [[ "${ENABLE_WEBSERVER}" -eq 1 ]]; then
echo "Starting ragflow_server..."
while true; do
"$PY" api/ragflow_server.py
"$PY" api/ragflow_server_fastapi.py
done &
fi

View File

@@ -30,6 +30,7 @@ dependencies = [
"demjson3==3.0.6",
"discord-py==2.3.2",
"duckduckgo-search>=7.2.0,<8.0.0",
"email-validator==2.3.0",
"editdistance==0.8.1",
"elastic-transport==8.12.0",
"elasticsearch==8.12.1",
@@ -40,6 +41,7 @@ dependencies = [
"flask-cors==5.0.0",
"flask-login==0.6.3",
"flask-session==0.8.0",
"fastapi==0.118.2",
"google-search-results==2.4.2",
"groq==0.9.0",
"hanziconv==0.3.2",

7505
uv.lock generated

File diff suppressed because it is too large Load Diff