Download Dockerfile from EvoNet/Gateway: direct link, hf CLI and curl.
- Browser
- Download file 488 Bytes
-
https://huggingface.co/spaces/EvoNet/Gateway/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/EvoNet/Gateway/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/EvoNet/Gateway/resolve/main/Dockerfile
488 Bytes
| FROM python:3.11-slim | |
| WORKDIR /app | |
| # Install build tools for llama-cpp-python (C++ compiler) | |
| RUN apt-get update && apt-get install -y g++ build-essential cmake curl && rm -rf /var/lib/apt/lists/* | |
| COPY requirements.txt . | |
| # Force single-threaded compilation to prevent OOMKilled on Hugging Face Spaces | |
| ENV CMAKE_BUILD_PARALLEL_LEVEL=1 | |
| ENV MAKEFLAGS="-j1" | |
| RUN pip install --no-cache-dir -r requirements.txt | |
| COPY . . | |
| # Hugging Face exposes port 7860 | |
| EXPOSE 7860 | |
| CMD ["python", "main.py"] | |