1
0
Fork 0
ostree-native-containers/containers/Dockerfile.kde-nvidia
ver4a f26fd618fd
Some checks failed
/ Build onc-kde:main (push) Failing after 4m10s
/ Build onc-kde:main-ver4a (push) Has been skipped
/ Build onc-kde:main-nvidia (push) Has been skipped
/ Build onc-kde:main-nvidia-ver4a (push) Has been skipped
Ignore dnf5 errors
This is a workaround to this issue
https://github.com/rpm-software-management/dnf5/issues/2507, the real
bug is in the package and not rpm, but I don't have a better solution
than completely ignoring the error right now. The build should be
otherwise fine.
2026-04-03 00:59:39 +02:00

22 lines
649 B
Text

ARG REGISTRY_DOMAIN
ARG NAMESPACE
FROM ${REGISTRY_DOMAIN}/${NAMESPACE}/onc-kde:main
# Install nvidia drivers
RUN dnf5 -y install akmod-nvidia xorg-x11-drv-nvidia xorg-x11-drv-nvidia-cuda || true && \
akmods --force --kernels $(rpm -qa kernel | sed 's/kernel-//g') && \
rpm -e akmod-nvidia && \
dnf5 -y autoremove
# Apply configuration
COPY usr.nvidia /usr
# Enables nvidia persistenced, required for programs that don't/can't activate the nvidia driver (steam flatpak)
RUN systemctl enable nvidia-persistenced.service
# https://github.com/ostreedev/ostree-rs-ext/issues/159
RUN ostree container commit
LABEL quay.expires-after=""