1
0
Fork 0
ostree-native-containers/Dockerfile.gnome-nvidia
ver4a 134207ef6a
All checks were successful
/ build-gnome (push) Successful in 15m24s
/ build-kde (push) Successful in 19m54s
Enable nvidia persistenced
2025-03-12 18:59:25 +01:00

18 lines
591 B
Text

ARG NAMESPACE
FROM git.uncontrol.me/${NAMESPACE}/onc-gnome: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
# 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