File size: 401 Bytes
3f4431f
 
96ce81f
3f4431f
 
96ce81f
 
 
 
 
 
 
3f4431f
 
96ce81f
6bc4001
3f4431f
96ce81f
519c923
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.9-slim

# Set working directory
WORKDIR /app

# Copy requirements first (better Docker caching)
COPY requirements.txt .

# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt

# Copy project files
COPY . .

# Expose port required by Hugging Face Spaces
EXPOSE 7860

# Start API with Gunicorn
CMD ["gunicorn","-w","1","-b","0.0.0.0:7860","app:pneumonia_detector_api"]