* docker : fix CPU ARM build
* add CURL to other builds
FROM ubuntu:$UBUNTU_VERSION AS build
+ARG TARGETARCH
+
RUN apt-get update && \
apt-get install -y build-essential git cmake libcurl4-openssl-dev
COPY . .
-RUN cmake -S . -B build -DGGML_BACKEND_DL=ON -DGGML_NATIVE=OFF -DGGML_CPU_ALL_VARIANTS=ON -DLLAMA_CURL=ON -DCMAKE_BUILD_TYPE=Release && \
+RUN if [ "$TARGETARCH" = "amd64" ]; then \
+ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=ON -DGGML_BACKEND_DL=ON -DGGML_NATIVE=OFF -DGGML_CPU_ALL_VARIANTS=ON; \
+ else \
+ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DLLAMA_CURL=ON; \
+ fi && \
cmake --build build -j $(nproc)
RUN mkdir -p /app/lib && \