mirror of
				https://github.com/hiyouga/LLaMA-Factory.git
				synced 2025-11-04 18:02:19 +08:00 
			
		
		
		
	Update Dockerfile
Former-commit-id: 632681d8ece0eaac59bb364d971435a3bc6665a9
This commit is contained in:
		
							parent
							
								
									af2607de1a
								
							
						
					
					
						commit
						2e5d521ed8
					
				@ -9,18 +9,16 @@ ARG INSTALL_DEEPSPEED=false
 | 
			
		||||
ARG PIP_INDEX=https://pypi.org/simple
 | 
			
		||||
 | 
			
		||||
# Set the working directory
 | 
			
		||||
WORKDIR /app/LLaMA-Factory
 | 
			
		||||
 | 
			
		||||
RUN cd /app && \
 | 
			
		||||
    git config --global http.version HTTP/1.1 && \
 | 
			
		||||
    git clone https://github.com/hiyouga/LLaMA-Factory.git && \
 | 
			
		||||
    cd /app/LLaMA-Factory
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
# Install the requirements
 | 
			
		||||
COPY requirements.txt /app/
 | 
			
		||||
RUN pip config set global.index-url $PIP_INDEX
 | 
			
		||||
RUN python -m pip install --upgrade pip
 | 
			
		||||
RUN python -m pip install -r requirements.txt
 | 
			
		||||
 | 
			
		||||
# Copy the rest of the application into the image
 | 
			
		||||
COPY . /app/
 | 
			
		||||
 | 
			
		||||
# Install the LLaMA Factory
 | 
			
		||||
RUN EXTRA_PACKAGES="metrics"; \
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user