Spaces:
Sleeping
Sleeping
Download Dockerfile from khvlil69/anomaly-detection-api: direct link, hf CLI and curl.
- Browser
- Download file 496 Bytes
-
https://huggingface.co/spaces/khvlil69/anomaly-detection-api/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/khvlil69/anomaly-detection-api/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/khvlil69/anomaly-detection-api/resolve/main/Dockerfile
496 Bytes
| # Hugging Face Spaces: must listen on port 7860 | |
| FROM python:3.10-slim | |
| WORKDIR /app | |
| # OpenCV headless: libgl1-mesa-glx was replaced by libgl1 in Debian Bookworm+ | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Spaces expose port 7860 | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "--bind", "0.0.0.0:7860", "--timeout", "120", "app:app"] | |