mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-04-24 07:00:02 +08:00

### What problem does this PR solve? Related source file is in Windows/DOS format, they are format to Unix format. ### Type of change - [x] Refactoring Signed-off-by: Jin Hai <haijin.chn@gmail.com>
28 lines
620 B
Docker
28 lines
620 B
Docker
FROM infiniflow/ragflow-base:v2.0
|
|
USER root
|
|
|
|
WORKDIR /ragflow
|
|
|
|
## for cuda > 12.0
|
|
RUN pip uninstall -y onnxruntime-gpu
|
|
RUN pip install onnxruntime-gpu --extra-index-url https://aiinfra.pkgs.visualstudio.com/PublicPackages/_packaging/onnxruntime-cuda-12/pypi/simple/
|
|
|
|
|
|
ADD ./web ./web
|
|
RUN cd ./web && npm i --force && npm run build
|
|
|
|
ADD ./api ./api
|
|
ADD ./conf ./conf
|
|
ADD ./deepdoc ./deepdoc
|
|
ADD ./rag ./rag
|
|
ADD ./agent ./agent
|
|
ADD ./graphrag ./graphrag
|
|
|
|
ENV PYTHONPATH=/ragflow/
|
|
ENV HF_ENDPOINT=https://hf-mirror.com
|
|
|
|
ADD docker/entrypoint.sh ./entrypoint.sh
|
|
RUN chmod +x ./entrypoint.sh
|
|
|
|
ENTRYPOINT ["./entrypoint.sh"]
|