您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

Dockerfile.arm 829B

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