Download Dockerfile from dogindex/get: direct link, hf CLI and curl.
- Browser
- Download file 476 Bytes
-
https://huggingface.co/spaces/dogindex/get/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/dogindex/get/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/dogindex/get/resolve/main/Dockerfile
476 Bytes
| FROM python:3.11-slim | |
| ENV PYTHONDONTWRITEBYTECODE=1 | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV PORT=7860 | |
| ENV HOST=0.0.0.0 | |
| ENV MPLCONFIGDIR=/tmp/matplotlib | |
| WORKDIR /app | |
| RUN apt-get update \ | |
| && apt-get install -y --no-install-recommends libgl1 libglib2.0-0 \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY public ./public | |
| COPY src ./src | |
| COPY models ./models | |
| COPY server.py . | |
| EXPOSE 7860 | |
| CMD ["python", "server.py"] | |