Download Dockerfile from Unmid/Ana-2: direct link, hf CLI and curl.
- Browser
- Download file 825 Bytes
-
https://huggingface.co/spaces/Unmid/Ana-2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Unmid/Ana-2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Unmid/Ana-2/resolve/main/Dockerfile
825 Bytes
| FROM python:3.10-slim | |
| # Install gcc FIRST before anything else | |
| RUN apt-get update && apt-get install -y \ | |
| build-essential \ | |
| cmake \ | |
| curl \ | |
| gcc \ | |
| g++ \ | |
| && rm -rf /var/lib/apt/lists/* | |
| # Download the model | |
| RUN mkdir -p /opt/models && \ | |
| curl -L \ | |
| -H "User-Agent: Mozilla/5.0" \ | |
| -o /opt/models/model.gguf \ | |
| "https://huggingface.co/HauhauCS/Qwen3.5-4B-Uncensored-HauhauCS-Aggressive/resolve/main/Qwen3.5-4B-Uncensored-HauhauCS-Aggressive-Q4_K_M.gguf" | |
| WORKDIR /app | |
| # Build llama-cpp-python from source (CPU only, no CUDA) | |
| ENV CMAKE_ARGS="-DGGML_CUDA=OFF -DGGML_METAL=OFF" | |
| ENV FORCE_CMAKE=1 | |
| RUN pip install --no-cache-dir --upgrade pip && \ | |
| pip install --no-cache-dir llama-cpp-python==0.3.9 | |
| RUN pip install --no-cache-dir flask==3.0.0 | |
| COPY . . | |
| EXPOSE 7860 | |
| CMD ["python", "app.py"] |