Spaces:
Runtime error
Runtime error
Download Dockerfile from lakshraina2/cuims-captcha-solver: direct link, hf CLI and curl.
- Browser
- Download file 466 Bytes
-
https://huggingface.co/spaces/lakshraina2/cuims-captcha-solver/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/lakshraina2/cuims-captcha-solver/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/lakshraina2/cuims-captcha-solver/resolve/main/Dockerfile
466 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Install system dependencies for OpenCV (required for image processing) | |
| RUN apt-get update && apt-get install -y libglib2.0-0 libsm6 libxext6 libxrender-dev libgl1-mesa-glx && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Hugging Face requires apps to run on port 7860 | |
| EXPOSE 7860 | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |