added llama.cpp example
This commit is contained in:
parent
4410ac6294
commit
e091a1542e
1 changed files with 21 additions and 0 deletions
21
llama_cpp/Dockerfile
Normal file
21
llama_cpp/Dockerfile
Normal file
|
@ -0,0 +1,21 @@
|
|||
FROM debian:latest
|
||||
|
||||
ARG U_NAME="user"
|
||||
ARG U_ID="1000"
|
||||
RUN adduser --disabled-password --gecos '' --uid ${U_ID} ${U_NAME}
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
git \
|
||||
cmake g++ \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /home/${U_NAME}
|
||||
|
||||
USER ${U_NAME}
|
||||
RUN \
|
||||
git clone --depth=1 https://github.com/ggml-org/llama.cpp && \
|
||||
cd llama.cpp && \
|
||||
cmake -B build && \
|
||||
cmake --build build --config Release -j 4
|
||||
|
||||
WORKDIR /home/${U_NAME}/llama.cpp/build/bin
|
Reference in a new issue