test-app-backend-api / Dockerfile
TheHumanAgent's picture
Update Dockerfile
e182a06 verified
raw
history blame contribute delete
441 Bytes
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"]