Download Dockerfile from ramedde/math: direct link, hf CLI and curl.
- Browser
- Download file 927 Bytes
-
https://huggingface.co/spaces/ramedde/math/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/ramedde/math/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/ramedde/math/resolve/main/Dockerfile
927 Bytes
| FROM python:3.11-slim | |
| RUN apt-get update && apt-get install -y \ | |
| git \ | |
| git-lfs \ | |
| ffmpeg \ | |
| libsm6 \ | |
| libxext6 \ | |
| cmake \ | |
| rsync \ | |
| libgl1 \ | |
| g++ \ | |
| gcc \ | |
| build-essential \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && git lfs install | |
| RUN useradd -m -u 1000 user | |
| WORKDIR /app | |
| ENV GRADIO_SERVER_NAME="0.0.0.0" | |
| ENV GRADIO_SERVER_PORT="7860" | |
| RUN pip install --no-cache-dir --upgrade pip | |
| # Download model using wget directly (no token needed for public models) | |
| RUN apt-get update && apt-get install -y wget && \ | |
| wget -q --show-progress \ | |
| "https://huggingface.co/Qwen/Qwen2.5-0.5B-Instruct-GGUF/resolve/main/qwen2.5-0.5b-instruct-q4_k_m.gguf" \ | |
| -O /app/model.gguf && \ | |
| echo "✅ Model size: $(du -sh /app/model.gguf)" | |
| COPY requirements.txt . | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY --chown=user:user . /app | |
| USER user | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |