Spaces:
Runtime error
Runtime error
Download Dockerfile from exploitz3r0bbd/gpt: direct link, hf CLI and curl.
- Browser
- Download file 723 Bytes
-
https://huggingface.co/spaces/exploitz3r0bbd/gpt/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/exploitz3r0bbd/gpt/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/exploitz3r0bbd/gpt/resolve/main/Dockerfile
723 Bytes
| FROM ubuntu:22.04 | |
| ENV DEBIAN_FRONTEND=noninteractive | |
| WORKDIR /app | |
| RUN apt update && apt install -y \ | |
| git \ | |
| cmake \ | |
| build-essential \ | |
| curl \ | |
| ca-certificates \ | |
| && rm -rf /var/lib/apt/lists/* | |
| RUN git clone https://github.com/ggerganov/llama.cpp | |
| RUN cmake -S llama.cpp -B llama.cpp/build \ | |
| -DLLAMA_BUILD_SERVER=ON \ | |
| -DCMAKE_BUILD_TYPE=Release \ | |
| && cmake --build llama.cpp/build --target llama-server | |
| RUN mkdir -p /models | |
| # ✅ UNGATED MODEL | |
| RUN curl -L --fail -o /models/model.gguf \ | |
| https://huggingface.co/Xlnk/Xlnk-Ai/resolve/main/1.gguf | |
| # ✅ GGUF sanity check (no xxd) | |
| RUN head -c 4 /models/model.gguf | |
| COPY start.sh /start.sh | |
| RUN chmod +x /start.sh | |
| EXPOSE 7860 | |
| CMD ["/start.sh"] |