Download Dockerfile from MLBench/ReaLens: direct link, hf CLI and curl.
- Browser
- Download file 432 Bytes
-
https://huggingface.co/spaces/MLBench/ReaLens/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/MLBench/ReaLens/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/MLBench/ReaLens/resolve/main/Dockerfile
432 Bytes
| FROM python:3.9-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| WORKDIR /app | |
| # Required for OpenCV image display & ultralytics | |
| RUN apt-get update && apt-get install -y \ | |
| libgl1 \ | |
| libglib2.0-0 \ | |
| git \ | |
| curl \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip \ | |
| && pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] | |