This repository has been archived on 2025-06-06. You can view files and clone it, but cannot push or open issues or pull requests.
podman_examples/llama_cpp/Dockerfile
2025-04-04 11:55:41 -05:00

21 lines
458 B
Docker

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