Spaces:
Sleeping
Sleeping
Download Dockerfile from fatyidha/FaceShapeAPI: direct link, hf CLI and curl.
- Browser
- Download file 375 Bytes
-
https://huggingface.co/spaces/fatyidha/FaceShapeAPI/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/fatyidha/FaceShapeAPI/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/fatyidha/FaceShapeAPI/resolve/main/Dockerfile
375 Bytes
| FROM python:3.10-slim | |
| # Çalışma dizinini ayarla | |
| WORKDIR /app | |
| # Gerekli dosyaları kopyala | |
| COPY requirements.txt requirements.txt | |
| COPY app.py app.py | |
| COPY face_shape_model.h5 face_shape_model.h5 | |
| # Bağımlılıkları yükle | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Uvicorn ile FastAPI başlat | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |