File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change 1- ARG GCC_VERSION=15.2.0
2- ARG UBUNTU_VERSION=24.10
1+ ARG UBUNTU_VERSION=22.04
32
4- FROM gcc:${GCC_VERSION} AS build
3+ FROM ubuntu:$UBUNTU_VERSION AS build
54
65ARG TARGETARCH
76
87RUN apt-get update && \
98 apt-get install -y build-essential git cmake libcurl4-openssl-dev
109
10+ RUN if [ "$TARGETARCH" = "s390x" ]; then \
11+ apt-get install -y libopenblas-dev; \
12+ fi
13+
1114WORKDIR /app
1215
1316COPY . .
1417
1518RUN if [ "$TARGETARCH" = "amd64" ] || [ "$TARGETARCH" = "arm64" ]; then \
1619 cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=OFF -DLLAMA_BUILD_TESTS=OFF -DGGML_BACKEND_DL=ON -DGGML_CPU_ALL_VARIANTS=ON; \
17- elif [ "${ TARGETARCH} " = "s390x" ]; then \
18- cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=OFF -DLLAMA_BUILD_TESTS=OFF -DGGML_BACKEND_DL =ON -DGGML_CPU_ALL_VARIANTS=OFF ; \
20+ elif [ "$TARGETARCH" = "s390x" ]; then \
21+ cmake -S . -B build -DCMAKE_BUILD_TYPE=Release -DGGML_NATIVE=OFF -DLLAMA_BUILD_TESTS=OFF -DGGML_BLAS =ON -DGGML_BLAS_VENDOR=OpenBLAS ; \
1922 else \
2023 echo "Unsupported architecture" ; \
2124 exit 1; \
You can’t perform that action at this time.
0 commit comments