From b3b627ad5b48a4cf25a002c43c0d8cd319af73d8 Mon Sep 17 00:00:00 2001 From: xiezhongtao Date: Fri, 16 Jan 2026 17:31:10 +0800 Subject: [PATCH] =?UTF-8?q?docs:=20=E6=9B=B4=E6=96=B0README.md=E5=B9=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0Dockerfile?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 更新README.md以包含上游仓库的同步标签信息 添加Dockerfile用于构建MUSA 环境下的应用 --- Dockerfile | 12 ++++++++++++ README.md | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..2a450b3 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,12 @@ +FROM mthreads/musa:rc4.3.0-devel-ubuntu22.04-amd64 as builder +ADD . /src +WORKDIR /src +RUN cmake -B build \ + -DGGML_MUSA=ON -DLLAMA_OPENSSL=OFF -DGGML_CUDA_NO_VMM=ON -DMUSA_ARCHITECTURES=${MUSA_ARCH:-22} \ + -DCMAKE_BUILD_TYPE=Release &&\ + cmake --build build -j + +FROM mthreads/musa:rc4.3.0-runtime-ubuntu22.04-amd64 +COPY --from=builder /src/build/bin /app +WORKDIR /app +ENTRYPOINT [ "/app/llama-cli" ] \ No newline at end of file diff --git a/README.md b/README.md index d1e65c7..44540f4 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # llama.cpp -> Sync from upstream `llama.cpp` repository +> Sync from upstream `llama.cpp` repository tag `b7516` ![llama](https://user-images.githubusercontent.com/1991296/230134379-7181e485-c521-4d23-a0d6-f7b3b61ba524.png)