llama-cli.Dockerfile
1 ARG UBUNTU_VERSION=22.04 2 3 FROM ubuntu:$UBUNTU_VERSION as build 4 5 RUN apt-get update && \ 6 apt-get install -y build-essential git 7 8 WORKDIR /app 9 10 COPY . . 11 12 RUN make -j$(nproc) llama-cli 13 14 FROM ubuntu:$UBUNTU_VERSION as runtime 15 16 RUN apt-get update && \ 17 apt-get install -y libgomp1 18 19 COPY --from=build /app/llama-cli /llama-cli 20 21 ENV LC_ALL=C.utf8 22 23 ENTRYPOINT [ "/llama-cli" ]