2025-10-27 17:46:40 +08:00
|
|
|
# Application stage - builds on top of the base image
|
|
|
|
|
# First build the base image using: docker build -f Dockerfile.base -t ragflow-base:latest .
|
|
|
|
|
FROM ragflow-base:latest AS production
|
2025-10-13 13:18:03 +08:00
|
|
|
USER root
|
|
|
|
|
|
|
|
|
|
WORKDIR /ragflow
|
|
|
|
|
|
2025-10-27 17:46:40 +08:00
|
|
|
# Copy application source code (these files change frequently)
|
2025-10-13 13:18:03 +08:00
|
|
|
COPY api api
|
|
|
|
|
COPY conf conf
|
|
|
|
|
COPY deepdoc deepdoc
|
|
|
|
|
COPY rag rag
|
|
|
|
|
COPY agent agent
|
|
|
|
|
COPY graphrag graphrag
|
|
|
|
|
COPY agentic_reasoning agentic_reasoning
|
2025-10-27 10:34:16 +08:00
|
|
|
COPY pyproject.toml ./
|
2025-10-13 13:18:03 +08:00
|
|
|
COPY mcp mcp
|
|
|
|
|
COPY plugin plugin
|
|
|
|
|
|
2025-10-27 17:46:40 +08:00
|
|
|
# Copy configuration templates and entrypoint
|
2025-10-13 13:18:03 +08:00
|
|
|
COPY docker/service_conf.yaml.template ./conf/service_conf.yaml.template
|
|
|
|
|
COPY docker/entrypoint.sh ./
|
|
|
|
|
RUN chmod +x ./entrypoint*.sh
|
|
|
|
|
|
2025-10-27 17:46:40 +08:00
|
|
|
# Set the entrypoint
|
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|