Spaces:
Sleeping
Sleeping
Download Dockerfile from zotthytt12/hr_classifier: direct link, hf CLI and curl.
- Browser
- Download file 422 Bytes
-
https://huggingface.co/spaces/zotthytt12/hr_classifier/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/zotthytt12/hr_classifier/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/zotthytt12/hr_classifier/resolve/main/Dockerfile
422 Bytes
| # Użyj lekkiego obrazu z Pythonem | |
| FROM python:3.10-slim | |
| # Ustaw katalog roboczy | |
| WORKDIR /code | |
| # Skopiuj pliki projektu | |
| COPY . /code | |
| # Zainstaluj zależności | |
| RUN pip install --no-cache-dir fastapi uvicorn joblib pandas huggingface_hub pydantic scikit-learn | |
| # Domyślny port (Spaces używa 7860) | |
| EXPOSE 7860 | |
| # Uruchom aplikację FastAPI przez uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] | |