File tree 1 file changed +7
-2
lines changed
1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ FROM ubuntu:$UBUNTU_VERSION AS build
4
4
5
5
ARG TARGETARCH
6
6
7
+ ARG GGML_CPU_ARM_ARCH=armv8-a
8
+
7
9
RUN apt-get update && \
8
10
apt-get install -y build-essential git cmake libcurl4-openssl-dev
9
11
@@ -12,9 +14,12 @@ WORKDIR /app
12
14
COPY . .
13
15
14
16
RUN if [ "$TARGETARCH" = "amd64" ]; then \
15
- cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=ON -DGGML_BACKEND_DL=ON -DGGML_NATIVE=OFF -DGGML_CPU_ALL_VARIANTS=ON; \
17
+ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=ON -DGGML_NATIVE=OFF -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON; \
18
+ elif [ "$TARGETARCH" = "arm64" ]; then \
19
+ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=ON -DGGML_NATIVE=OFF -DGGML_CPU_ARM_ARCH=${GGML_CPU_ARM_ARCH}; \
16
20
else \
17
- cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=ON; \
21
+ echo "Unsupported architecture" ; \
22
+ exit 1; \
18
23
fi && \
19
24
cmake --build build -j $(nproc)
20
25
You can’t perform that action at this time.
0 commit comments