# build stage FROM registry.fedoraproject.org/fedora:43 AS builder # rocm 7.2 repo RUN <<'EOF' tee /etc/yum.repos.d/rocm.repo < /etc/ld.so.conf.d/local.conf \ && echo "/usr/local/lib64" >> /etc/ld.so.conf.d/local.conf \ && ldconfig \ && cp -n /usr/local/lib/libllama*.so* /usr/lib64/ 2>/dev/null || true \ && ldconfig # helper COPY gguf-vram-estimator.py /usr/local/bin/gguf-vram-estimator.py RUN chmod +x /usr/local/bin/gguf-vram-estimator.py # profile RUN printf '%s\n' \ > /etc/profile.d/rocm.sh && chmod +x /etc/profile.d/rocm.sh \ && echo 'source /etc/profile.d/rocm.sh' >> /etc/bashrc # shell CMD ["/bin/bash"]