copy earlier to avoid caching if kernel version has changed.
This commit is contained in:
parent
de035eee0f
commit
fa85f7978d
1 changed files with 2 additions and 2 deletions
|
|
@ -58,6 +58,8 @@ RUN mkdir /tmp/nvidia
|
||||||
|
|
||||||
COPY install-nvidia.sh /tmp/install-nvidia.sh
|
COPY install-nvidia.sh /tmp/install-nvidia.sh
|
||||||
|
|
||||||
|
COPY --from=akmods-builder /var/cache/akmods/*/* /tmp/nvidia
|
||||||
|
|
||||||
RUN cd /etc/yum.repos.d/ && wget https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos-addons/repo/fedora-$(rpm -E %fedora)/bieszczaders-kernel-cachyos-addons-fedora-$(rpm -E %fedora).repo
|
RUN cd /etc/yum.repos.d/ && wget https://copr.fedorainfracloud.org/coprs/bieszczaders/kernel-cachyos-addons/repo/fedora-$(rpm -E %fedora)/bieszczaders-kernel-cachyos-addons-fedora-$(rpm -E %fedora).repo
|
||||||
|
|
||||||
RUN cd /etc/yum.repos.d/ && \
|
RUN cd /etc/yum.repos.d/ && \
|
||||||
|
|
@ -68,8 +70,6 @@ cd /tmp
|
||||||
# override and upgrade libbpf
|
# override and upgrade libbpf
|
||||||
RUN rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-addons libbpf
|
RUN rpm-ostree override replace --experimental --from repo=copr:copr.fedorainfracloud.org:bieszczaders:kernel-cachyos-addons libbpf
|
||||||
|
|
||||||
COPY --from=akmods-builder /var/cache/akmods/*/* /tmp/nvidia
|
|
||||||
|
|
||||||
# install binutils to get strip command
|
# install binutils to get strip command
|
||||||
RUN rpm-ostree install binutils
|
RUN rpm-ostree install binutils
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue