migrated to fedora 43 from rawhide to fix build issues
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
# build
|
||||
FROM registry.fedoraproject.org/fedora:rawhide AS builder
|
||||
FROM registry.fedoraproject.org/fedora:43 AS builder
|
||||
# Toggle llama.cpp PR 15405 (RPC perf for large models)
|
||||
ARG APPLY_LLAMA_PR_15405=1
|
||||
|
||||
RUN dnf -y --nodocs --setopt=install_weak_deps=False install \
|
||||
make gcc cmake lld clang clang-devel compiler-rt libcurl-devel \
|
||||
@@ -55,6 +57,12 @@ RUN printf '%s\n' \
|
||||
WORKDIR /opt/llama.cpp
|
||||
RUN git clone --recursive https://github.com/ggerganov/llama.cpp.git . \
|
||||
&& git clean -xdf \
|
||||
&& if [ "${APPLY_LLAMA_PR_15405}" = "1" ]; then \
|
||||
git config user.email "builder@localhost"; \
|
||||
git config user.name "Container Builder"; \
|
||||
git fetch origin pull/15405/head:pr-15405; \
|
||||
git merge --no-edit pr-15405; \
|
||||
fi \
|
||||
&& git submodule update --recursive
|
||||
|
||||
RUN cmake -S . -B build \
|
||||
@@ -73,7 +81,7 @@ RUN find /opt/rocm-7.0 -type f -name '*.a' -delete \
|
||||
&& rm -rf /opt/llama.cpp
|
||||
|
||||
# runtime
|
||||
FROM registry.fedoraproject.org/fedora-minimal:rawhide
|
||||
FROM registry.fedoraproject.org/fedora-minimal:43
|
||||
|
||||
RUN microdnf -y --nodocs --setopt=install_weak_deps=0 install \
|
||||
bash ca-certificates libatomic libstdc++ libgcc radeontop vim \
|
||||
|
||||
Reference in New Issue
Block a user