Download Dockerfile from austinsd/notebooks: direct link, hf CLI and curl.
- Browser
- Download file 619 Bytes
-
https://huggingface.co/spaces/austinsd/notebooks/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/austinsd/notebooks/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/austinsd/notebooks/resolve/main/Dockerfile
619 Bytes
| # Use a minimal base image with Python 3.9 installed | |
| FROM python:3.9-slim | |
| # Set the working directory inside the container to /app | |
| WORKDIR /app | |
| # Copy the backend files into the container | |
| COPY app.py . | |
| COPY requirements.txt . | |
| COPY xgboost_model.joblib . | |
| COPY scaler.joblib . | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose the port the Flask app will run on | |
| EXPOSE 5000 | |
| # Command to run the Flask application using Gunicorn, run as a module with increased timeout | |
| CMD ["python", "-m", "gunicorn", "--bind", "0.0.0.0:5000", "--workers", "1", "--timeout", "120", "app:app"] | |