Spaces:
Paused
Paused
Download Dockerfile from iftikharfoaid/foaid: direct link, hf CLI and curl.
- Browser
- Download file 496 Bytes
-
https://huggingface.co/spaces/iftikharfoaid/foaid/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/iftikharfoaid/foaid/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/iftikharfoaid/foaid/resolve/main/Dockerfile
496 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 PIP_NO_CACHE_DIR=1 | |
| WORKDIR /app | |
| COPY requirements.txt . | |
| # dlib-bin = ready-made dlib (no 20-minute compile); face_recognition itself is installed without its "dlib" requirement | |
| RUN pip install --upgrade pip && \ | |
| pip install -r requirements.txt && \ | |
| pip install --no-deps face_recognition==1.3.0 | |
| COPY app.py . | |
| RUN useradd -m -u 1000 user | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860", "--workers", "1"] | |