Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM ubuntu:22.04

# Zarur kutubxonalar
RUN apt-get update && apt-get install -y \
build-essential cmake git python3 python3-pip

# Klon qilish
RUN git clone https://github.com/xoleric512/llama.cpp.git /llama.cpp
WORKDIR /llama.cpp

# Qurish
RUN mkdir build && cd build && cmake .. && make -j$(nproc)

# Models papkasini konteyner ichiga qo‘shish
VOLUME ["/models"]

# Port ochish (llama-server odatda port 8080)
EXPOSE 8080

# Entrypoint
CMD ["./build/bin/llama-server", "--port", "8080", "-m", "/models/model.gguf"]