1
0

llama-cli.Dockerfile 376 B

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