gpt / Dockerfile
exploitz3r0bbd's picture
Update Dockerfile
76d5751 verified
raw
history blame contribute delete
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"]