-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
18 lines (14 loc) · 1.2 KB
/
Dockerfile
File metadata and controls
18 lines (14 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM registry.fedoraproject.org/fedora:40 AS builder
RUN dnf install -y dnf-plugins-core gcc gcc-c++ make cmake git vim-enhanced ccache glslc glslang
RUN dnf install -y vulkan-loader vulkan-loader-devel vulkan-tools vulkan-headers
ENV mesa_version=24.1.5-101
RUN dnf copr enable -y slp/mesa-krunkit
RUN dnf install -y mesa-dri-drivers-${mesa_version} mesa-filesystem-${mesa_version} mesa-libOpenCL-${mesa_version} mesa-libgbm-${mesa_version} mesa-libglapi-${mesa_version} mesa-va-drivers-${mesa_version} mesa-vulkan-drivers-${mesa_version}
RUN git clone https://github.com/ggerganov/llama.cpp.git /root/llama.cpp
RUN cd /root/llama.cpp && git checkout 56d03d92be57f5880b9ed94542d87bb6effae31f && cmake -B build -DLLAMA_VULKAN=1 && cd build && make install && rm -rf /root/llama.cpp
# microdnf does not support copr, so install the rpm(s) individually
FROM registry.fedoraproject.org/fedora-minimal:40
ENV mesa_version=24.1.5-101
RUN microdnf install -y vulkan-loader https://download.copr.fedorainfracloud.org/results/slp/mesa-krunkit/fedora-40-aarch64/07895967-mesa/mesa-vulkan-drivers-${mesa_version}.aarch64.rpm && microdnf clean all
COPY --from=builder /usr/local/bin/main /usr/local/bin/
COPY do.sh /usr/local/bin/