Spaces:
Sleeping
Sleeping
Download Dockerfile from LikoKIko/OpenCensor-H1-Mini: direct link, hf CLI and curl.
- Browser
- Download file 549 Bytes
-
https://huggingface.co/spaces/LikoKIko/OpenCensor-H1-Mini/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/LikoKIko/OpenCensor-H1-Mini/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/LikoKIko/OpenCensor-H1-Mini/resolve/main/Dockerfile
549 Bytes
| FROM python:3.10-slim | |
| ENV PYTHONUNBUFFERED=1 | |
| ENV HF_HOME=/app/.cache | |
| ENV TRANSFORMERS_CACHE=/app/.cache | |
| WORKDIR /app | |
| # Cache bust to force Hugging Face to pull the new Gradio version | |
| # Cache bust: 1 | |
| RUN mkdir -p /app/.cache && chmod 777 /app/.cache | |
| RUN apt-get update && apt-get install -y --no-install-recommends \ | |
| ca-certificates curl libgomp1 git \ | |
| && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| RUN python -m pip install --upgrade pip && pip install -r requirements.txt | |
| COPY app.py . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |