修改Dockerfile
This commit is contained in:
15
Dockerfile
15
Dockerfile
@@ -145,7 +145,8 @@ USER root
|
|||||||
WORKDIR /ragflow
|
WORKDIR /ragflow
|
||||||
|
|
||||||
# install dependencies from uv.lock file
|
# 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
|
# https://github.com/astral-sh/uv/issues/10462
|
||||||
# uv records index url into uv.lock but doesn't failover among multiple indexes
|
# 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; \
|
uv sync --python 3.10 --frozen --all-extras; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
COPY web web
|
|
||||||
COPY docs docs
|
RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked
|
||||||
RUN --mount=type=cache,id=ragflow_npm,target=/root/.npm,sharing=locked \
|
|
||||||
cd web && npm install && npm run build
|
|
||||||
|
|
||||||
COPY .git /ragflow/.git
|
COPY .git /ragflow/.git
|
||||||
|
|
||||||
@@ -190,7 +189,6 @@ ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
|
|||||||
|
|
||||||
ENV PYTHONPATH=/ragflow/
|
ENV PYTHONPATH=/ragflow/
|
||||||
|
|
||||||
COPY web web
|
|
||||||
COPY api api
|
COPY api api
|
||||||
COPY conf conf
|
COPY conf conf
|
||||||
COPY deepdoc deepdoc
|
COPY deepdoc deepdoc
|
||||||
@@ -198,7 +196,7 @@ COPY rag rag
|
|||||||
COPY agent agent
|
COPY agent agent
|
||||||
COPY graphrag graphrag
|
COPY graphrag graphrag
|
||||||
COPY agentic_reasoning agentic_reasoning
|
COPY agentic_reasoning agentic_reasoning
|
||||||
COPY pyproject.toml uv.lock ./
|
COPY pyproject.toml ./
|
||||||
COPY mcp mcp
|
COPY mcp mcp
|
||||||
COPY plugin plugin
|
COPY plugin plugin
|
||||||
|
|
||||||
@@ -206,8 +204,7 @@ COPY docker/service_conf.yaml.template ./conf/service_conf.yaml.template
|
|||||||
COPY docker/entrypoint.sh ./
|
COPY docker/entrypoint.sh ./
|
||||||
RUN chmod +x ./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
|
COPY --from=builder /ragflow/VERSION /ragflow/VERSION
|
||||||
ENTRYPOINT ["./entrypoint.sh"]
|
ENTRYPOINT ["./entrypoint.sh"]
|
||||||
|
|||||||
@@ -94,7 +94,7 @@ SVR_HTTP_PORT=9380
|
|||||||
|
|
||||||
# The RAGFlow Docker image to download.
|
# The RAGFlow Docker image to download.
|
||||||
# Defaults to the v0.20.5-slim edition, which is the RAGFlow Docker image without embedding models.
|
# 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:
|
# To download the RAGFlow Docker image with embedding models, uncomment the following line instead:
|
||||||
# RAGFLOW_IMAGE=infiniflow/ragflow:v0.20.5
|
# RAGFLOW_IMAGE=infiniflow/ragflow:v0.20.5
|
||||||
|
|||||||
@@ -181,7 +181,7 @@ if [[ "${ENABLE_WEBSERVER}" -eq 1 ]]; then
|
|||||||
|
|
||||||
echo "Starting ragflow_server..."
|
echo "Starting ragflow_server..."
|
||||||
while true; do
|
while true; do
|
||||||
"$PY" api/ragflow_server.py
|
"$PY" api/ragflow_server_fastapi.py
|
||||||
done &
|
done &
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@@ -30,6 +30,7 @@ dependencies = [
|
|||||||
"demjson3==3.0.6",
|
"demjson3==3.0.6",
|
||||||
"discord-py==2.3.2",
|
"discord-py==2.3.2",
|
||||||
"duckduckgo-search>=7.2.0,<8.0.0",
|
"duckduckgo-search>=7.2.0,<8.0.0",
|
||||||
|
"email-validator==2.3.0",
|
||||||
"editdistance==0.8.1",
|
"editdistance==0.8.1",
|
||||||
"elastic-transport==8.12.0",
|
"elastic-transport==8.12.0",
|
||||||
"elasticsearch==8.12.1",
|
"elasticsearch==8.12.1",
|
||||||
@@ -40,6 +41,7 @@ dependencies = [
|
|||||||
"flask-cors==5.0.0",
|
"flask-cors==5.0.0",
|
||||||
"flask-login==0.6.3",
|
"flask-login==0.6.3",
|
||||||
"flask-session==0.8.0",
|
"flask-session==0.8.0",
|
||||||
|
"fastapi==0.118.2",
|
||||||
"google-search-results==2.4.2",
|
"google-search-results==2.4.2",
|
||||||
"groq==0.9.0",
|
"groq==0.9.0",
|
||||||
"hanziconv==0.3.2",
|
"hanziconv==0.3.2",
|
||||||
|
|||||||
Reference in New Issue
Block a user