mirror of
https://github.com/ikawrakow/ik_llama.cpp.git
synced 2026-01-26 17:20:01 +00:00
* Merging mainline - WIP * Merging mainline - WIP AVX2 and CUDA appear to work. CUDA performance seems slightly (~1-2%) lower as it is so often the case with llama.cpp/ggml after some "improvements" have been made. * Merging mainline - fix Metal * Remove check --------- Co-authored-by: Iwan Kawrakow <iwan.kawrakow@gmail.com>
30 lines
843 B
Docker
30 lines
843 B
Docker
ARG UBUNTU_VERSION=jammy
|
|
|
|
FROM ubuntu:$UBUNTU_VERSION AS build
|
|
|
|
# Install build tools
|
|
RUN apt update && apt install -y git build-essential cmake wget
|
|
|
|
# Install Vulkan SDK and cURL
|
|
RUN wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \
|
|
wget -qO /etc/apt/sources.list.d/lunarg-vulkan-jammy.list https://packages.lunarg.com/vulkan/lunarg-vulkan-jammy.list && \
|
|
apt update -y && \
|
|
apt-get install -y vulkan-sdk libcurl4-openssl-dev curl
|
|
|
|
# Build it
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN cmake -B build -DGGML_VULKAN=1 -DLLAMA_CURL=1 && \
|
|
cmake --build build --config Release --target llama-server
|
|
|
|
# Clean up
|
|
WORKDIR /
|
|
RUN cp /app/build/bin/llama-server /llama-server && \
|
|
rm -rf /app
|
|
|
|
ENV LC_ALL=C.utf8
|
|
|
|
HEALTHCHECK CMD [ "curl", "-f", "http://localhost:8080/health" ]
|
|
|
|
ENTRYPOINT [ "/llama-server" ]
|