Download Dockerfile from ibsocr1/ibsware: direct link, hf CLI and curl.
- Browser
- Download file 509 Bytes
-
https://huggingface.co/spaces/ibsocr1/ibsware/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ibsocr1/ibsware/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ibsocr1/ibsware/resolve/main/Dockerfile
509 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONUNBUFFERED=1 \ | |
| PIP_NO_CACHE_DIR=1 \ | |
| GRADIO_SERVER_NAME=0.0.0.0 \ | |
| GRADIO_SERVER_PORT=7860 | |
| WORKDIR /app | |
| # OpenCV runtime dependencies | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| libglib2.0-0 \ | |
| libgl1 \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender1 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --upgrade pip && \ | |
| pip install -r requirements.txt | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |