Spaces:
Runtime error
Runtime error
Download Dockerfile from arsh1101/defo_detect_2: direct link, hf CLI and curl.
- Browser
- Download file 437 Bytes
-
https://huggingface.co/spaces/arsh1101/defo_detect_2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/arsh1101/defo_detect_2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/arsh1101/defo_detect_2/resolve/main/Dockerfile
437 Bytes
| FROM python:3.9 | |
| # Set working directory | |
| WORKDIR /app | |
| # Install system dependencies for OpenCV | |
| RUN apt-get update && apt-get install -y libgl1 && apt-get clean && rm -rf /var/lib/apt/lists/* | |
| # Copy application files | |
| COPY . /app | |
| # Install Python dependencies | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| # Expose the port | |
| EXPOSE 8000 | |
| # Command to start Uvicorn | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"] | |