Spaces:
Sleeping
Sleeping
Download Dockerfile from hackathonig/mail_triage: direct link, hf CLI and curl.
- Browser
- Download file 656 Bytes
-
https://huggingface.co/spaces/hackathonig/mail_triage/resolve/refs%2Fpr%2F13/Dockerfile
- Command line
-
hf download hf://spaces/hackathonig/mail_triage@refs/pr/13/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/hackathonig/mail_triage/resolve/refs%2Fpr%2F13/Dockerfile
656 Bytes
| # Use an official Python runtime as a parent image | |
| FROM python:3.10-slim | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Install system dependencies | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Copy the requirements file | |
| COPY requirements.txt . | |
| # Upgrade pip/setuptools/wheel first, then install the core. | |
| RUN pip install --no-cache-dir --upgrade pip setuptools wheel && \ | |
| pip install --no-cache-dir -r requirements.txt | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Expose port 8000 | |
| EXPOSE 8000 | |
| # UPDATED: Command to run the entry point script | |
| CMD ["python", "server.py"] |