Spaces:
Sleeping
Sleeping
Download Dockerfile from Distopia22/Icd-cpt-coding-api: direct link, hf CLI and curl.
- Browser
- Download file 331 Bytes
-
https://huggingface.co/spaces/Distopia22/Icd-cpt-coding-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Distopia22/Icd-cpt-coding-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Distopia22/Icd-cpt-coding-api/resolve/main/Dockerfile
331 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Copy requirements first for better caching | |
| COPY requirements.txt . | |
| # Install dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Copy the entire project | |
| COPY . . | |
| # Expose port 7860 (Hugging Face Spaces default) | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["python", "src/main.py"] |