From 553bad585edae319a3bf0d9b00b15ed1a675f79d Mon Sep 17 00:00:00 2001 From: mudler Date: Sat, 15 Apr 2023 00:07:39 +0200 Subject: [PATCH] Use tags for go-llama.cpp --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3b284a9..7c63171 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,10 +1,9 @@ ARG GO_VERSION=1.20 ARG DEBIAN_VERSION=11 - FROM golang:$GO_VERSION as builder - WORKDIR /build -RUN git clone --recurse-submodules https://github.com/go-skynet/go-llama.cpp +ARG GO_LLAMA_CPP_TAG=llama.cpp-8b67998 +RUN git clone -b $GO_LLAMA_CPP_TAG --recurse-submodules https://github.com/go-skynet/go-llama.cpp RUN cd go-llama.cpp && make libbinding.a COPY go.mod ./ COPY go.sum ./