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.
22 lines
649 B
Text
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=""
|