File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -2,14 +2,20 @@ ARG UBUNTU_VERSION=22.04
2
2
3
3
FROM ubuntu:$UBUNTU_VERSION AS build
4
4
5
+ ARG TARGETARCH
6
+
5
7
RUN apt-get update && \
6
8
apt-get install -y build-essential git cmake libcurl4-openssl-dev
7
9
8
10
WORKDIR /app
9
11
10
12
COPY . .
11
13
12
- RUN cmake -S . -B build -DGGML_BACKEND_DL=ON -DGGML_NATIVE=OFF -DGGML_CPU_ALL_VARIANTS=ON -DLLAMA_CURL=ON -DCMAKE_BUILD_TYPE=Release && \
14
+ 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; \
16
+ else \
17
+ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=ON; \
18
+ fi && \
13
19
cmake --build build -j $(nproc)
14
20
15
21
RUN mkdir -p /app/lib && \
You can’t perform that action at this time.
0 commit comments