20 lines
		
	
	
		
			No EOL
		
	
	
		
			627 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			20 lines
		
	
	
		
			No EOL
		
	
	
		
			627 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# Use the official Python image from the Docker Hub
 | 
						|
FROM python:3.13-bookworm
 | 
						|
 | 
						|
# Set the working directory in the container
 | 
						|
WORKDIR /app
 | 
						|
 | 
						|
# Copy the requirements file into the container at /app
 | 
						|
COPY requirements.txt .
 | 
						|
 | 
						|
# Update apt, install libgl1, and clear apt cache
 | 
						|
RUN apt update && apt install -y libgl1 && rm -rf /var/lib/apt/lists/*
 | 
						|
 | 
						|
# 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 ["python3", "-m", "fastapi", "run", "--host", "0.0.0.0", "--port", "8000"] |