Spaces:
Runtime error
Runtime error
Download Dockerfile from VietCat/TrafficSignDetector: direct link, hf CLI and curl.
- Browser
- Download file 474 Bytes
-
https://huggingface.co/spaces/VietCat/TrafficSignDetector/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/VietCat/TrafficSignDetector/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/VietCat/TrafficSignDetector/resolve/main/Dockerfile
474 Bytes
| FROM python:3.9-slim | |
| WORKDIR /app | |
| # Copy requirements first to leverage Docker cache | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt && \ | |
| pip install --no-cache-dir --force-reinstall opencv-python-headless==4.9.0.80 && \ | |
| pip install --no-cache-dir --force-reinstall numpy==1.24.3 | |
| # Copy application files | |
| COPY app.py model.py config.yaml . | |
| # Expose the port that Gradio uses | |
| EXPOSE 7860 | |
| # Run the application | |
| CMD ["python", "app.py"] | |