Skip to content

Commit

Permalink
docker : fix CPU ARM build (#11403)
Browse files Browse the repository at this point in the history
* docker : fix CPU ARM build

* add CURL to other builds
  • Loading branch information
slaren authored Jan 25, 2025
1 parent 00c24ac commit 20a7581
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .devops/cpu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,20 @@ ARG UBUNTU_VERSION=22.04

FROM ubuntu:$UBUNTU_VERSION AS build

ARG TARGETARCH

RUN apt-get update && \
apt-get install -y build-essential git cmake libcurl4-openssl-dev

WORKDIR /app

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 && \
Expand Down

0 comments on commit 20a7581

Please sign in to comment.