Add Dockerfile and requirements.txt for arm (#936)
Browse files### What problem does this PR solve?
#253
### Type of change
- [x] New Feature (non-breaking change which adds functionality)
- Dockerfile.arm +32 -0
- requirements_arm.txt +137 -0
Dockerfile.arm
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.11
|
| 2 |
+
USER root
|
| 3 |
+
|
| 4 |
+
WORKDIR /ragflow
|
| 5 |
+
|
| 6 |
+
COPY requirements_arm.txt /ragflow/requirements.txt
|
| 7 |
+
RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --default-timeout=1000 -r requirements.txt &&\
|
| 8 |
+
python -c "import nltk;nltk.download('punkt');nltk.download('wordnet')"
|
| 9 |
+
|
| 10 |
+
RUN apt-get update && \
|
| 11 |
+
apt-get install -y curl gnupg && \
|
| 12 |
+
rm -rf /var/lib/apt/lists/*
|
| 13 |
+
|
| 14 |
+
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
|
| 15 |
+
apt-get install -y nodejs nginx ffmpeg libsm6 libxext6 libgl1
|
| 16 |
+
|
| 17 |
+
ADD ./web ./web
|
| 18 |
+
RUN cd ./web && npm i --force && npm run build
|
| 19 |
+
|
| 20 |
+
ADD ./api ./api
|
| 21 |
+
ADD ./conf ./conf
|
| 22 |
+
ADD ./deepdoc ./deepdoc
|
| 23 |
+
ADD ./rag ./rag
|
| 24 |
+
|
| 25 |
+
ENV PYTHONPATH=/ragflow/
|
| 26 |
+
ENV HF_ENDPOINT=https://hf-mirror.com
|
| 27 |
+
|
| 28 |
+
ADD docker/entrypoint.sh ./entrypoint.sh
|
| 29 |
+
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types==0.6.0
|
| 5 |
+
anyio==4.3.0
|
| 6 |
+
argon2-cffi==23.1.0
|
| 7 |
+
argon2-cffi-bindings==21.2.0
|
| 8 |
+
#Aspose.Slides==24.2.0
|
| 9 |
+
attrs==23.2.0
|
| 10 |
+
blinker==1.7.0
|
| 11 |
+
cachelib==0.12.0
|
| 12 |
+
cachetools==5.3.3
|
| 13 |
+
certifi==2024.2.2
|
| 14 |
+
cffi==1.16.0
|
| 15 |
+
charset-normalizer==3.3.2
|
| 16 |
+
click==8.1.7
|
| 17 |
+
coloredlogs==15.0.1
|
| 18 |
+
cryptography==42.0.5
|
| 19 |
+
dashscope==1.14.1
|
| 20 |
+
datasets==2.17.1
|
| 21 |
+
datrie==0.8.2
|
| 22 |
+
demjson3==3.0.6
|
| 23 |
+
dill==0.3.8
|
| 24 |
+
distro==1.9.0
|
| 25 |
+
elastic-transport==8.12.0
|
| 26 |
+
elasticsearch==8.12.1
|
| 27 |
+
elasticsearch-dsl==8.12.0
|
| 28 |
+
et-xmlfile==1.1.0
|
| 29 |
+
filelock==3.13.1
|
| 30 |
+
fastembed==0.2.6
|
| 31 |
+
FlagEmbedding==1.2.5
|
| 32 |
+
Flask==3.0.2
|
| 33 |
+
Flask-Cors==4.0.0
|
| 34 |
+
Flask-Login==0.6.3
|
| 35 |
+
Flask-Session==0.6.0
|
| 36 |
+
flatbuffers==23.5.26
|
| 37 |
+
frozenlist==1.4.1
|
| 38 |
+
fsspec==2023.10.0
|
| 39 |
+
h11==0.14.0
|
| 40 |
+
hanziconv==0.3.2
|
| 41 |
+
httpcore==1.0.4
|
| 42 |
+
httpx==0.27.0
|
| 43 |
+
huggingface-hub==0.20.3
|
| 44 |
+
humanfriendly==10.0
|
| 45 |
+
idna==3.6
|
| 46 |
+
install==1.3.5
|
| 47 |
+
itsdangerous==2.1.2
|
| 48 |
+
Jinja2==3.1.3
|
| 49 |
+
joblib==1.3.2
|
| 50 |
+
lxml==5.1.0
|
| 51 |
+
MarkupSafe==2.1.5
|
| 52 |
+
minio==7.2.4
|
| 53 |
+
mpmath==1.3.0
|
| 54 |
+
multidict==6.0.5
|
| 55 |
+
multiprocess==0.70.16
|
| 56 |
+
networkx==3.2.1
|
| 57 |
+
nltk==3.8.1
|
| 58 |
+
numpy==1.26.4
|
| 59 |
+
# nvidia-cublas-cu12==12.1.3.1
|
| 60 |
+
# nvidia-cuda-cupti-cu12==12.1.105
|
| 61 |
+
# nvidia-cuda-nvrtc-cu12==12.1.105
|
| 62 |
+
# nvidia-cuda-runtime-cu12==12.1.105
|
| 63 |
+
# nvidia-cudnn-cu12==8.9.2.26
|
| 64 |
+
# nvidia-cufft-cu12==11.0.2.54
|
| 65 |
+
# nvidia-curand-cu12==10.3.2.106
|
| 66 |
+
# nvidia-cusolver-cu12==11.4.5.107
|
| 67 |
+
# nvidia-cusparse-cu12==12.1.0.106
|
| 68 |
+
# nvidia-nccl-cu12==2.19.3
|
| 69 |
+
# nvidia-nvjitlink-cu12==12.3.101
|
| 70 |
+
# nvidia-nvtx-cu12==12.1.105
|
| 71 |
+
ollama==0.1.9
|
| 72 |
+
# onnxruntime-gpu==1.17.1
|
| 73 |
+
openai==1.12.0
|
| 74 |
+
opencv-python==4.9.0.80
|
| 75 |
+
openpyxl==3.1.2
|
| 76 |
+
packaging==23.2
|
| 77 |
+
pandas==2.2.1
|
| 78 |
+
pdfminer.six==20221105
|
| 79 |
+
pdfplumber==0.10.4
|
| 80 |
+
peewee==3.17.1
|
| 81 |
+
pillow==10.2.0
|
| 82 |
+
protobuf==4.25.3
|
| 83 |
+
psutil==5.9.8
|
| 84 |
+
pyarrow==15.0.0
|
| 85 |
+
pyarrow-hotfix==0.6
|
| 86 |
+
pyclipper==1.3.0.post5
|
| 87 |
+
pycparser==2.21
|
| 88 |
+
pycryptodome==3.20.0
|
| 89 |
+
pycryptodome-test-vectors==1.0.14
|
| 90 |
+
pycryptodomex==3.20.0
|
| 91 |
+
pydantic==2.6.2
|
| 92 |
+
pydantic_core==2.16.3
|
| 93 |
+
PyJWT==2.8.0
|
| 94 |
+
PyMySQL==1.1.0
|
| 95 |
+
PyPDF2==3.0.1
|
| 96 |
+
pypdfium2==4.27.0
|
| 97 |
+
python-dateutil==2.8.2
|
| 98 |
+
python-docx==1.1.0
|
| 99 |
+
python-dotenv==1.0.1
|
| 100 |
+
python-pptx==0.6.23
|
| 101 |
+
pytz==2024.1
|
| 102 |
+
PyYAML==6.0.1
|
| 103 |
+
redis==5.0.3
|
| 104 |
+
regex==2023.12.25
|
| 105 |
+
requests==2.31.0
|
| 106 |
+
ruamel.yaml==0.18.6
|
| 107 |
+
ruamel.yaml.clib==0.2.8
|
| 108 |
+
safetensors==0.4.2
|
| 109 |
+
scikit-learn==1.4.1.post1
|
| 110 |
+
scipy==1.12.0
|
| 111 |
+
sentence-transformers==2.4.0
|
| 112 |
+
shapely==2.0.3
|
| 113 |
+
six==1.16.0
|
| 114 |
+
sniffio==1.3.1
|
| 115 |
+
StrEnum==0.4.15
|
| 116 |
+
sympy==1.12
|
| 117 |
+
threadpoolctl==3.3.0
|
| 118 |
+
tika==2.6.0
|
| 119 |
+
tiktoken==0.6.0
|
| 120 |
+
tokenizers==0.15.2
|
| 121 |
+
torch==2.2.1
|
| 122 |
+
tqdm==4.66.2
|
| 123 |
+
transformers==4.38.1
|
| 124 |
+
# triton==2.2.0
|
| 125 |
+
typing_extensions==4.10.0
|
| 126 |
+
tzdata==2024.1
|
| 127 |
+
urllib3==2.2.1
|
| 128 |
+
Werkzeug==3.0.1
|
| 129 |
+
xgboost==2.0.3
|
| 130 |
+
XlsxWriter==3.2.0
|
| 131 |
+
xpinyin==0.7.6
|
| 132 |
+
xxhash==3.4.1
|
| 133 |
+
yarl==1.9.4
|
| 134 |
+
zhipuai==2.0.1
|
| 135 |
+
BCEmbedding
|
| 136 |
+
loguru==0.7.2
|
| 137 |
+
opencv-python-headless==4.9.0.80
|