2023-03-17 10:47:06 +01:00
|
|
|
ARG UBUNTU_VERSION=22.04
|
|
|
|
|
|
|
|
FROM ubuntu:$UBUNTU_VERSION as build
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
2023-05-29 06:45:50 +02:00
|
|
|
apt-get install -y build-essential git
|
2023-03-17 10:47:06 +01:00
|
|
|
|
|
|
|
WORKDIR /app
|
|
|
|
|
|
|
|
COPY . .
|
|
|
|
|
2024-06-10 15:42:20 +01:00
|
|
|
RUN make -j$(nproc) llama-cli
|
2023-03-17 10:47:06 +01:00
|
|
|
|
|
|
|
FROM ubuntu:$UBUNTU_VERSION as runtime
|
|
|
|
|
2024-06-06 07:17:21 +02:00
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y libgomp1
|
|
|
|
|
2024-06-10 15:34:14 +01:00
|
|
|
COPY --from=build /app/llama-cli /llama-cli
|
2023-03-17 10:47:06 +01:00
|
|
|
|
2023-06-08 15:58:53 +08:00
|
|
|
ENV LC_ALL=C.utf8
|
|
|
|
|
2024-06-10 15:34:14 +01:00
|
|
|
ENTRYPOINT [ "/llama-cli" ]
|