forked from infiniflow/ragflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Format file format from Windows/dos to Unix (infiniflow#1949)
### 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 <[email protected]>
- Loading branch information
Showing
108 changed files
with
36,399 additions
and
36,399 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,27 +1,27 @@ | ||
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"] | ||
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"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1,56 @@ | ||
FROM ubuntu:22.04 | ||
USER root | ||
WORKDIR /ragflow | ||
RUN apt-get update && apt-get install -y wget curl build-essential libopenmpi-dev | ||
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
bash ~/miniconda.sh -b -p /root/miniconda3 && \ | ||
rm ~/miniconda.sh && ln -s /root/miniconda3/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ | ||
echo ". /root/miniconda3/etc/profile.d/conda.sh" >> ~/.bashrc && \ | ||
echo "conda activate base" >> ~/.bashrc | ||
ENV PATH /root/miniconda3/bin:$PATH | ||
RUN conda create -y --name py11 python=3.11 | ||
ENV CONDA_DEFAULT_ENV py11 | ||
ENV CONDA_PREFIX /root/miniconda3/envs/py11 | ||
ENV PATH $CONDA_PREFIX/bin:$PATH | ||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - | ||
RUN apt-get install -y nodejs | ||
RUN apt-get install -y nginx | ||
ADD ./web ./web | ||
ADD ./api ./api | ||
ADD ./conf ./conf | ||
ADD ./deepdoc ./deepdoc | ||
ADD ./rag ./rag | ||
ADD ./requirements.txt ./requirements.txt | ||
ADD ./agent ./agent | ||
ADD ./graphrag ./graphrag | ||
RUN apt install openmpi-bin openmpi-common libopenmpi-dev | ||
ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu/openmpi/lib:$LD_LIBRARY_PATH | ||
RUN rm /root/miniconda3/envs/py11/compiler_compat/ld | ||
RUN cd ./web && npm i --force && npm run build | ||
RUN conda run -n py11 pip install -i https://mirrors.aliyun.com/pypi/simple/ -r ./requirements.txt | ||
RUN apt-get update && \ | ||
apt-get install -y libglib2.0-0 libgl1-mesa-glx && \ | ||
rm -rf /var/lib/apt/lists/* | ||
RUN conda run -n py11 pip install -i https://mirrors.aliyun.com/pypi/simple/ ollama | ||
RUN conda run -n py11 python -m nltk.downloader punkt | ||
RUN conda run -n py11 python -m nltk.downloader wordnet | ||
ENV PYTHONPATH=/ragflow/ | ||
ENV HF_ENDPOINT=https://hf-mirror.com | ||
ADD docker/entrypoint.sh ./entrypoint.sh | ||
RUN chmod +x ./entrypoint.sh | ||
ENTRYPOINT ["./entrypoint.sh"] | ||
FROM ubuntu:22.04 | ||
USER root | ||
|
||
WORKDIR /ragflow | ||
|
||
RUN apt-get update && apt-get install -y wget curl build-essential libopenmpi-dev | ||
|
||
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
bash ~/miniconda.sh -b -p /root/miniconda3 && \ | ||
rm ~/miniconda.sh && ln -s /root/miniconda3/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ | ||
echo ". /root/miniconda3/etc/profile.d/conda.sh" >> ~/.bashrc && \ | ||
echo "conda activate base" >> ~/.bashrc | ||
|
||
ENV PATH /root/miniconda3/bin:$PATH | ||
|
||
RUN conda create -y --name py11 python=3.11 | ||
|
||
ENV CONDA_DEFAULT_ENV py11 | ||
ENV CONDA_PREFIX /root/miniconda3/envs/py11 | ||
ENV PATH $CONDA_PREFIX/bin:$PATH | ||
|
||
RUN curl -sL https://deb.nodesource.com/setup_14.x | bash - | ||
RUN apt-get install -y nodejs | ||
|
||
RUN apt-get install -y nginx | ||
|
||
ADD ./web ./web | ||
ADD ./api ./api | ||
ADD ./conf ./conf | ||
ADD ./deepdoc ./deepdoc | ||
ADD ./rag ./rag | ||
ADD ./requirements.txt ./requirements.txt | ||
ADD ./agent ./agent | ||
ADD ./graphrag ./graphrag | ||
|
||
RUN apt install openmpi-bin openmpi-common libopenmpi-dev | ||
ENV LD_LIBRARY_PATH /usr/lib/x86_64-linux-gnu/openmpi/lib:$LD_LIBRARY_PATH | ||
RUN rm /root/miniconda3/envs/py11/compiler_compat/ld | ||
RUN cd ./web && npm i --force && npm run build | ||
RUN conda run -n py11 pip install -i https://mirrors.aliyun.com/pypi/simple/ -r ./requirements.txt | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y libglib2.0-0 libgl1-mesa-glx && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN conda run -n py11 pip install -i https://mirrors.aliyun.com/pypi/simple/ ollama | ||
RUN conda run -n py11 python -m nltk.downloader punkt | ||
RUN conda run -n py11 python -m nltk.downloader wordnet | ||
|
||
ENV PYTHONPATH=/ragflow/ | ||
ENV HF_ENDPOINT=https://hf-mirror.com | ||
|
||
ADD docker/entrypoint.sh ./entrypoint.sh | ||
RUN chmod +x ./entrypoint.sh | ||
|
||
ENTRYPOINT ["./entrypoint.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,58 +1,58 @@ | ||
FROM opencloudos/opencloudos:9.0 | ||
USER root | ||
WORKDIR /ragflow | ||
RUN dnf update -y && dnf install -y wget curl gcc-c++ openmpi-devel | ||
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
bash ~/miniconda.sh -b -p /root/miniconda3 && \ | ||
rm ~/miniconda.sh && ln -s /root/miniconda3/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ | ||
echo ". /root/miniconda3/etc/profile.d/conda.sh" >> ~/.bashrc && \ | ||
echo "conda activate base" >> ~/.bashrc | ||
ENV PATH /root/miniconda3/bin:$PATH | ||
RUN conda create -y --name py11 python=3.11 | ||
ENV CONDA_DEFAULT_ENV py11 | ||
ENV CONDA_PREFIX /root/miniconda3/envs/py11 | ||
ENV PATH $CONDA_PREFIX/bin:$PATH | ||
# RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash - | ||
RUN dnf install -y nodejs | ||
RUN dnf install -y nginx | ||
ADD ./web ./web | ||
ADD ./api ./api | ||
ADD ./conf ./conf | ||
ADD ./deepdoc ./deepdoc | ||
ADD ./rag ./rag | ||
ADD ./requirements.txt ./requirements.txt | ||
ADD ./agent ./agent | ||
ADD ./graphrag ./graphrag | ||
RUN dnf install -y openmpi openmpi-devel python3-openmpi | ||
ENV C_INCLUDE_PATH /usr/include/openmpi-x86_64:$C_INCLUDE_PATH | ||
ENV LD_LIBRARY_PATH /usr/lib64/openmpi/lib:$LD_LIBRARY_PATH | ||
RUN rm /root/miniconda3/envs/py11/compiler_compat/ld | ||
RUN cd ./web && npm i --force && npm run build | ||
RUN conda run -n py11 pip install $(grep -ivE "mpi4py" ./requirements.txt) # without mpi4py==3.1.5 | ||
RUN conda run -n py11 pip install redis | ||
RUN dnf update -y && \ | ||
dnf install -y glib2 mesa-libGL && \ | ||
dnf clean all | ||
RUN conda run -n py11 pip install ollama | ||
RUN conda run -n py11 python -m nltk.downloader punkt | ||
RUN conda run -n py11 python -m nltk.downloader wordnet | ||
ENV PYTHONPATH=/ragflow/ | ||
ENV HF_ENDPOINT=https://hf-mirror.com | ||
ADD docker/entrypoint.sh ./entrypoint.sh | ||
RUN chmod +x ./entrypoint.sh | ||
ENTRYPOINT ["./entrypoint.sh"] | ||
FROM opencloudos/opencloudos:9.0 | ||
USER root | ||
|
||
WORKDIR /ragflow | ||
|
||
RUN dnf update -y && dnf install -y wget curl gcc-c++ openmpi-devel | ||
|
||
RUN wget https://repo.anaconda.com/miniconda/Miniconda3-latest-Linux-x86_64.sh -O ~/miniconda.sh && \ | ||
bash ~/miniconda.sh -b -p /root/miniconda3 && \ | ||
rm ~/miniconda.sh && ln -s /root/miniconda3/etc/profile.d/conda.sh /etc/profile.d/conda.sh && \ | ||
echo ". /root/miniconda3/etc/profile.d/conda.sh" >> ~/.bashrc && \ | ||
echo "conda activate base" >> ~/.bashrc | ||
|
||
ENV PATH /root/miniconda3/bin:$PATH | ||
|
||
RUN conda create -y --name py11 python=3.11 | ||
|
||
ENV CONDA_DEFAULT_ENV py11 | ||
ENV CONDA_PREFIX /root/miniconda3/envs/py11 | ||
ENV PATH $CONDA_PREFIX/bin:$PATH | ||
|
||
# RUN curl -sL https://rpm.nodesource.com/setup_14.x | bash - | ||
RUN dnf install -y nodejs | ||
|
||
RUN dnf install -y nginx | ||
|
||
ADD ./web ./web | ||
ADD ./api ./api | ||
ADD ./conf ./conf | ||
ADD ./deepdoc ./deepdoc | ||
ADD ./rag ./rag | ||
ADD ./requirements.txt ./requirements.txt | ||
ADD ./agent ./agent | ||
ADD ./graphrag ./graphrag | ||
|
||
RUN dnf install -y openmpi openmpi-devel python3-openmpi | ||
ENV C_INCLUDE_PATH /usr/include/openmpi-x86_64:$C_INCLUDE_PATH | ||
ENV LD_LIBRARY_PATH /usr/lib64/openmpi/lib:$LD_LIBRARY_PATH | ||
RUN rm /root/miniconda3/envs/py11/compiler_compat/ld | ||
RUN cd ./web && npm i --force && npm run build | ||
RUN conda run -n py11 pip install $(grep -ivE "mpi4py" ./requirements.txt) # without mpi4py==3.1.5 | ||
RUN conda run -n py11 pip install redis | ||
|
||
RUN dnf update -y && \ | ||
dnf install -y glib2 mesa-libGL && \ | ||
dnf clean all | ||
|
||
RUN conda run -n py11 pip install ollama | ||
RUN conda run -n py11 python -m nltk.downloader punkt | ||
RUN conda run -n py11 python -m nltk.downloader wordnet | ||
|
||
ENV PYTHONPATH=/ragflow/ | ||
ENV HF_ENDPOINT=https://hf-mirror.com | ||
|
||
ADD docker/entrypoint.sh ./entrypoint.sh | ||
RUN chmod +x ./entrypoint.sh | ||
|
||
ENTRYPOINT ["./entrypoint.sh"] |
Oops, something went wrong.