You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Dockerfile.arm 1.1KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. FROM python:3.11
  2. USER root
  3. WORKDIR /ragflow
  4. COPY requirements_arm.txt /ragflow/requirements.txt
  5. RUN pip install nltk --default-timeout=10000
  6. RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --default-timeout=1000 -r requirements.txt &&\
  7. python -c "import nltk;nltk.download('punkt');nltk.download('wordnet')"
  8. RUN apt-get update && \
  9. apt-get install -y curl gnupg && \
  10. rm -rf /var/lib/apt/lists/*
  11. RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
  12. apt-get install -y --fix-missing nodejs nginx ffmpeg libsm6 libxext6 libgl1
  13. RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y
  14. ENV PATH="/root/.cargo/bin:${PATH}"
  15. RUN pip install graspologic
  16. ADD ./web ./web
  17. RUN cd ./web && npm i --force && npm run build
  18. ADD ./api ./api
  19. ADD ./conf ./conf
  20. ADD ./deepdoc ./deepdoc
  21. ADD ./rag ./rag
  22. ADD ./agent ./agent
  23. ADD ./graphrag ./graphrag
  24. ENV PYTHONPATH=/ragflow/
  25. ENV HF_ENDPOINT=https://hf-mirror.com
  26. ADD docker/entrypoint.sh ./entrypoint.sh
  27. ADD docker/.env ./
  28. RUN chmod +x ./entrypoint.sh
  29. ENTRYPOINT ["./entrypoint.sh"]