docker build
This commit is contained in:
		
							parent
							
								
									7d2cf464b1
								
							
						
					
					
						commit
						5f7bebdaf9
					
				
					 2 changed files with 17 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								Dockerfile
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
# Use the official Python image from the Docker Hub
 | 
			
		||||
FROM python:3.9-slim
 | 
			
		||||
 | 
			
		||||
# Set the working directory in the container
 | 
			
		||||
WORKDIR /app
 | 
			
		||||
 | 
			
		||||
# Copy the requirements file into the container at /app
 | 
			
		||||
COPY requirements.txt .
 | 
			
		||||
 | 
			
		||||
# Install any dependencies specified in requirements.txt
 | 
			
		||||
RUN pip install --no-cache-dir -r requirements.txt
 | 
			
		||||
 | 
			
		||||
# Copy the rest of the application code into the container at /app
 | 
			
		||||
COPY . .
 | 
			
		||||
 | 
			
		||||
# Run the application
 | 
			
		||||
CMD ["python", "./app.py"]
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue