File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 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
44
55ARG TARGETARCH
66
7+ ARG GGML_CPU_ARM_ARCH=armv8-a
8+
79RUN apt-get update && \
810 apt-get install -y build-essential git cmake libcurl4-openssl-dev
911
@@ -12,9 +14,12 @@ WORKDIR /app
1214COPY . .
1315
1416RUN 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}; \
1620 else \
17- cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=ON; \
21+ echo "Unsupported architecture" ; \
22+ exit 1; \
1823 fi && \
1924 cmake --build build -j $(nproc)
2025
You can’t perform that action at this time.
0 commit comments