Update llama-server-cuda.Dockerfile

This commit is contained in:
流年 2024-12-06 04:33:54 +08:00 committed by GitHub
parent 5e7222e5ef
commit 2466205cf4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -12,11 +12,15 @@ ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Africa/Johannesburg
# CUDA architecture to build for (defaults to all supported archs)
ARG CUDA_DOCKER_ARCH=default
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null | sudo apt-key add -WORKDIR /app && \
apt-add-repository 'deb https://apt.kitware.com/ubuntu/ bionic main' && \
apt-get update && \
apt-get install -y build-essential git cmake libcurl4-openssl-dev && \
ADD https://cmake.org/files/v3.25/cmake-3.25.2-linux-x86_64.tar.gz /tmp/
WORKDIR /tmp
RUN tar -xf cmake-3.25.2-linux-x86_64.tar.gz && \
cp -rd cmake-3.25.2-linux-x86_64/bin /usr/local/ && \
cp -rd cmake-3.25.2-linux-x86_64/doc /usr/local/ && \
cp -rd cmake-3.25.2-linux-x86_64/share /usr/local/ && \
rm -r /tmp/*
RUN apt-get update && \
apt-get install -y build-essential git libcurl4-openssl-dev && \
COPY . .