mirror of
				https://github.com/infiniflow/ragflow.git
				synced 2025-11-03 19:29:43 +00:00 
			
		
		
		
	### What problem does this PR solve? #1164 ### Type of change - [x] Bug Fix (non-breaking change which fixes an issue)
		
			
				
	
	
		
			33 lines
		
	
	
		
			863 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			33 lines
		
	
	
		
			863 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
FROM python:3.11
 | 
						|
USER  root
 | 
						|
 | 
						|
WORKDIR /ragflow
 | 
						|
 | 
						|
COPY requirements_arm.txt /ragflow/requirements.txt
 | 
						|
RUN pip install -i https://mirrors.aliyun.com/pypi/simple/ --default-timeout=1000 -r requirements.txt &&\
 | 
						|
python -c "import nltk;nltk.download('punkt');nltk.download('wordnet')"
 | 
						|
 | 
						|
RUN apt-get update && \
 | 
						|
    apt-get install -y curl gnupg && \
 | 
						|
    rm -rf /var/lib/apt/lists/*
 | 
						|
 | 
						|
RUN curl -sL https://deb.nodesource.com/setup_20.x | bash - && \
 | 
						|
    apt-get install -y --fix-missing nodejs nginx ffmpeg libsm6 libxext6 libgl1
 | 
						|
 | 
						|
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 ./graph ./graph
 | 
						|
 | 
						|
ENV PYTHONPATH=/ragflow/
 | 
						|
ENV HF_ENDPOINT=https://hf-mirror.com
 | 
						|
 | 
						|
ADD docker/entrypoint.sh ./entrypoint.sh
 | 
						|
ADD docker/.env ./
 | 
						|
RUN chmod +x ./entrypoint.sh
 | 
						|
 | 
						|
ENTRYPOINT ["./entrypoint.sh"] |