19 lines
		
	
	
		
			374 B
		
	
	
	
		
			Docker
		
	
	
	
			
		
		
	
	
			19 lines
		
	
	
		
			374 B
		
	
	
	
		
			Docker
		
	
	
	
# Use an official lightweight Python image
 | 
						|
FROM python:3.12-slim
 | 
						|
 | 
						|
# Set working directory
 | 
						|
WORKDIR /app
 | 
						|
 | 
						|
# Install Python dependencies
 | 
						|
COPY requirements.txt .
 | 
						|
RUN pip install --no-cache-dir -r requirements.txt
 | 
						|
 | 
						|
# Copy application code
 | 
						|
COPY main.py .
 | 
						|
 | 
						|
# Expose the port the app runs on
 | 
						|
EXPOSE 5000
 | 
						|
 | 
						|
# Command to run the application
 | 
						|
CMD ["python", "main.py", "--port", "5000"]
 |