Spaces:
				
			
			
	
			
			
					
		Running
		
	
	
	
			
			
	
	
	
	
		
		
					
		Running
		
	File size: 575 Bytes
			
			310a49f 80d068e 310a49f 80d068e 310a49f 80d068e 310a49f  | 
								1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22  | 
								FROM python:3.9-slim
WORKDIR /app
# Install system dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    gcc \
    && rm -rf /var/lib/apt/lists/*
# Copy requirements and install
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
# Copy application files (model will download on first startup)
COPY api.py .
COPY trained_model ./trained_model
# Expose port
EXPOSE 8000
# Start server (model downloads during first startup, cached for future restarts)
CMD ["uvicorn", "api:app", "--host", "0.0.0.0", "--port", "8000"] |