Download Dockerfile from aqul/intelview: direct link, hf CLI and curl.
- Browser
- Download file 580 Bytes
-
https://huggingface.co/spaces/aqul/intelview/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/aqul/intelview/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/aqul/intelview/resolve/main/Dockerfile
580 Bytes
| # syntax=docker/dockerfile:1.6 | |
| FROM python:3.12-slim | |
| WORKDIR /app | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| libxrender-dev \ | |
| libgomp1 \ | |
| libglib2.0-0 \ | |
| git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN --mount=type=secret,id=GITHUB_REPO,required=true \ | |
| git clone $(cat /run/secrets/GITHUB_REPO) . | |
| RUN pip install --no-cache-dir -r requirements.txt \ | |
| gunicorn | |
| ENV FLASK_ENV=production | |
| ENV PORT=7860 | |
| EXPOSE 7860 | |
| CMD ["gunicorn", "-w", "2", "--threads", "4", "-b", "0.0.0.0:7860", "app:app"] | |