Download Dockerfile from chris2002/ml_app: direct link, hf CLI and curl.
- Browser
- Download file 330 Bytes
-
https://huggingface.co/spaces/chris2002/ml_app/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/chris2002/ml_app/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/chris2002/ml_app/resolve/main/Dockerfile
330 Bytes
| FROM python:3.9 | |
| WORKDIR /code | |
| # Install system dependencies for OpenCV/YOLO | |
| RUN apt-get update && apt-get install -y libgl1-mesa-glx | |
| COPY ./requirements.txt /code/requirements.txt | |
| RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt | |
| COPY . /code | |
| CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"] |