mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2024-12-26 19:34:35 +00:00
0a1d889e27
* server: add cURL support to `full.Dockerfile` * server: add cURL support to `full-cuda.Dockerfile` and `server-cuda.Dockerfile` * server: add cURL support to `full-rocm.Dockerfile` and `server-rocm.Dockerfile` * server: add cURL support to `server-intel.Dockerfile` * server: add cURL support to `server-vulkan.Dockerfile` * fix typo in `server-vulkan.Dockerfile` Co-authored-by: Georgi Gerganov <ggerganov@gmail.com> --------- Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
34 lines
832 B
Docker
34 lines
832 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
|
|
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
|
|
|
|
# Install cURL
|
|
RUN apt-get update && \
|
|
apt-get install -y libcurl4-openssl-dev
|
|
|
|
# Build it
|
|
WORKDIR /app
|
|
COPY . .
|
|
RUN mkdir build && \
|
|
cd build && \
|
|
cmake .. -DLLAMA_VULKAN=1 -DLLAMA_CURL=1 && \
|
|
cmake --build . --config Release --target server
|
|
|
|
# Clean up
|
|
WORKDIR /
|
|
RUN cp /app/build/bin/server /server && \
|
|
rm -rf /app
|
|
|
|
ENV LC_ALL=C.utf8
|
|
|
|
ENTRYPOINT [ "/server" ]
|