Skip to content

Commit f37615c

Browse files
committed
Update Dockerfiles
1 parent 86f8f93 commit f37615c

14 files changed

+34
-32
lines changed

.devops/full-cuda.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ FROM ${BASE_CUDA_DEV_CONTAINER} AS build
1010
ARG CUDA_DOCKER_ARCH=default
1111

1212
RUN apt-get update && \
13-
apt-get install -y build-essential cmake python3 python3-pip git libcurl4-openssl-dev libgomp1
13+
apt-get install -y build-essential cmake python3 python3-pip git libcurl4-openssl-dev libgomp1 libssl-dev
1414

1515
COPY requirements.txt requirements.txt
1616
COPY requirements requirements

.devops/full-rocm.Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ ENV GGML_HIPBLAS=1
4040
ENV CC=/opt/rocm/llvm/bin/clang
4141
ENV CXX=/opt/rocm/llvm/bin/clang++
4242

43-
# Enable cURL
44-
ENV LLAMA_CURL=1
4543
RUN apt-get update && \
46-
apt-get install -y libcurl4-openssl-dev
44+
apt-get install -y cmake libcurl4-openssl-dev libssl-dev
4745

48-
RUN make -j$(nproc)
46+
RUN cmake -B build -DLLAMA_CURL=ON && \
47+
cmake --build build --config Release -j$(nproc) && \
48+
cp build/bin/* .
4949

5050
ENTRYPOINT ["/app/.devops/tools.sh"]

.devops/full.Dockerfile

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG UBUNTU_VERSION=22.04
33
FROM ubuntu:$UBUNTU_VERSION AS build
44

55
RUN apt-get update && \
6-
apt-get install -y build-essential python3 python3-pip git libcurl4-openssl-dev libgomp1
6+
apt-get install -y build-essential python3 python3-pip git cmake libcurl4-openssl-dev libgomp1 libssl-dev
77

88
COPY requirements.txt requirements.txt
99
COPY requirements requirements
@@ -15,10 +15,9 @@ WORKDIR /app
1515

1616
COPY . .
1717

18-
ENV LLAMA_CURL=1
19-
20-
21-
RUN make -j$(nproc)
18+
RUN cmake -B build -DLLAMA_CURL=ON && \
19+
cmake --build build --config Release -j$(nproc) && \
20+
cp build/bin/* .
2221

2322
ENV LC_ALL=C.utf8
2423

.devops/llama-cli-cann.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ WORKDIR /app
66

77
COPY . .
88

9-
RUN yum install -y gcc g++ cmake make
9+
RUN yum install -y gcc g++ cmake make openssl-devel
1010
ENV ASCEND_TOOLKIT_HOME=/usr/local/Ascend/ascend-toolkit/latest
1111
ENV LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:$LIBRARY_PATH
1212
ENV LD_LIBRARY_PATH=${ASCEND_TOOLKIT_HOME}/lib64:${ASCEND_TOOLKIT_HOME}/lib64/plugin/opskernel:${ASCEND_TOOLKIT_HOME}/lib64/plugin/nnengine:${ASCEND_TOOLKIT_HOME}/opp/built-in/op_impl/ai_core/tbe/op_tiling:${LD_LIBRARY_PATH}

.devops/llama-cli-cuda.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ FROM ${BASE_CUDA_DEV_CONTAINER} AS build
1212
ARG CUDA_DOCKER_ARCH=default
1313

1414
RUN apt-get update && \
15-
apt-get install -y build-essential git cmake
15+
apt-get install -y build-essential git cmake libssl-dev
1616

1717
WORKDIR /app
1818

.devops/llama-cli-intel.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ FROM intel/oneapi-basekit:$ONEAPI_VERSION AS build
44

55
ARG GGML_SYCL_F16=OFF
66
RUN apt-get update && \
7-
apt-get install -y git
7+
apt-get install -y git libssl-dev
88

99
WORKDIR /app
1010

.devops/llama-cli-rocm.Dockerfile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ ENV GGML_HIPBLAS=1
4040
ENV CC=/opt/rocm/llvm/bin/clang
4141
ENV CXX=/opt/rocm/llvm/bin/clang++
4242

43-
RUN make -j$(nproc) llama-cli
43+
RUN apt-get update && \
44+
apt-get install -y cmake libssl-dev
4445

45-
ENTRYPOINT [ "/app/llama-cli" ]
46+
RUN cmake -B build && \
47+
cmake --build build --config Release --target llama-server -j$(nproc)
48+
49+
ENTRYPOINT [ "/app/build/bin/llama-cli" ]

.devops/llama-cli-vulkan.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ ARG UBUNTU_VERSION=jammy
33
FROM ubuntu:$UBUNTU_VERSION AS build
44

55
# Install build tools
6-
RUN apt update && apt install -y git build-essential cmake wget libgomp1
6+
RUN apt update && apt install -y git build-essential cmake wget libgomp1 libssl-dev
77

88
# Install Vulkan SDK
99
RUN wget -qO - https://packages.lunarg.com/lunarg-signing-key-pub.asc | apt-key add - && \

.devops/llama-cli.Dockerfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,21 @@ ARG UBUNTU_VERSION=22.04
33
FROM ubuntu:$UBUNTU_VERSION AS build
44

55
RUN apt-get update && \
6-
apt-get install -y build-essential git
6+
apt-get install -y build-essential git cmake libssl-dev
77

88
WORKDIR /app
99

1010
COPY . .
1111

12-
RUN make -j$(nproc) llama-cli
12+
RUN cmake -B build && \
13+
cmake --build build --config Release --target llama-cli -j$(nproc)
1314

1415
FROM ubuntu:$UBUNTU_VERSION AS runtime
1516

1617
RUN apt-get update && \
1718
apt-get install -y libgomp1
1819

19-
COPY --from=build /app/llama-cli /llama-cli
20+
COPY --from=build /app/build/bin/llama-cli /llama-cli
2021

2122
ENV LC_ALL=C.utf8
2223

.devops/llama-server-cuda.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ FROM ${BASE_CUDA_DEV_CONTAINER} AS build
1212
ARG CUDA_DOCKER_ARCH=default
1313

1414
RUN apt-get update && \
15-
apt-get install -y build-essential git cmake libcurl4-openssl-dev
15+
apt-get install -y build-essential git cmake libcurl4-openssl-dev libssl-dev
1616

1717
WORKDIR /app
1818

0 commit comments

Comments
 (0)