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
22
33FROM ubuntu:$UBUNTU_VERSION AS build
44
5+ ARG TARGETARCH
6+
57RUN apt-get update && \
68 apt-get install -y build-essential git cmake libcurl4-openssl-dev
79
810WORKDIR /app
911
1012COPY . .
1113
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 && \
1319 cmake --build build -j $(nproc)
1420
1521RUN mkdir -p /app/lib && \
You can’t perform that action at this time.
0 commit comments