36 lines
1.3 KiB
Docker
36 lines
1.3 KiB
Docker
FROM quay.io/fedora/fedora-silverblue:42
|
|
|
|
# TODO: Remove the following line once this bug is fixed: https://github.com/coreos/rpm-ostree/issues/4201
|
|
#RUN test -f /usr/bin/ld || ln -s /usr/bin/ld.bfd /usr/bin/ld
|
|
|
|
# TODO: Remove the following line once this bug is fixed: https://github.com/coreos/rpm-ostree/issues/4201
|
|
#RUN test -h /usr/bin/ld && rm -v /usr/bin/ld
|
|
|
|
RUN dnf5 install -y https://mirrors.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm \
|
|
https://mirrors.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm && \
|
|
dnf install -y \
|
|
akmods \
|
|
ansible \
|
|
distrobox \
|
|
fuse-sshfs \
|
|
htop \
|
|
iftop \
|
|
iotop \
|
|
vim && \
|
|
dnf5 install -y akmod-nvidia nvtop && \
|
|
dnf5 clean all
|
|
|
|
RUN /usr/sbin/akmods --force --kernels "$(rpm -qa kernel --queryformat '%{VERSION}-%{RELEASE}.%{ARCH}')"
|
|
|
|
|
|
# Cleanup image for linting
|
|
RUN test -f /usr/lib/sysusers.d/libvirt.conf || echo -e 'g libvirt 963' > /usr/lib/sysusers.d/libvirt.conf && \
|
|
test -f /usr/lib/sysusers.d/qat.conf || echo -e 'g qat 995' > /usr/lib/sysusers.d/qat.conf
|
|
|
|
# Cleanup image for linting
|
|
RUN rm -rf /var && mkdir /var && \
|
|
rm -rf /boot && mkdir /boot
|
|
|
|
# Verify image is good
|
|
RUN bootc container lint --fatal-warnings --skip baseimage-composefs
|