1
0
Fork 0
ostree-native-containers/Dockerfile.kde-nvidia
ver4a 36fc168105
Some checks failed
/ build-gnome (push) Waiting to run
/ build-kde (push) Has been cancelled
Transition nvidia layer completely to dnf5
It turns out that "rpm-ostree install" marks all packages as user
installed, therefore it's impossible to distinguish manually installed packages
from their dependencies and "dnf5 autoremove" doesn't work. Moving to
dnf5 resolves this.
2024-11-14 13:03:33 +01:00

13 lines
421 B
Text

FROM git.uncontrol.me/ver4a/onc-kde:main
# Install nvidia drivers
RUN dnf5 -y install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda && \
akmods --force --kernels $(rpm -qa kernel | sed 's/kernel-//g') && \
rpm -e akmod-nvidia && \
dnf5 -y autoremove
# Remove rpm metadata cache
RUN rpm-ostree cleanup --repomd
# https://github.com/ostreedev/ostree-rs-ext/issues/159
RUN ostree container commit