Spaces:
Sleeping
Sleeping
Download Dockerfile from TheHumanAgent/test-app-backend-api: direct link, hf CLI and curl.
- Browser
- Download file 441 Bytes
-
https://huggingface.co/spaces/TheHumanAgent/test-app-backend-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/TheHumanAgent/test-app-backend-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/TheHumanAgent/test-app-backend-api/resolve/main/Dockerfile
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"] | |