File size: 441 Bytes
fa839c4
 
 
 
 
e182a06
 
fa839c4
e182a06
fa839c4
 
e182a06
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3.9-slim

# Set the working directory inside the container
WORKDIR /app

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

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

# Copy rest of the project files
COPY . .

# Start the application using Gunicorn
#EXPOSE 7860

CMD ["gunicorn", "-w", "4", "-b", "0.0.0.0:7860", "app:churn_predictor_api"]