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