Bootstrap: docker
From: rockylinux:8

%files
	ucsf-chimerax-1.4-1.el8.x86_64.rpm

%post
	dnf -y update
	dnf -y install dnf-plugins-core strace
	# for pk-gtk-module and canberra-gtk-module:
	dnf -y install PackageKit-gtk3-module libcanberra-gtk3
	# install mesa drivers
	dnf -y install mesa-dri-drivers
	# install VMware graphics driver
	dnf -y install xorg-x11-drv-vmware
	# install Nvidia graphics driver
	#dnf -y install elrepo-release
	#dnf -y install nvidia-detect
	#dnf -y install $(nvidia-detect)
	# install ChimeraX
	dnf -y localinstall ucsf-chimerax-1.4-1.el8.x86_64.rpm

%runscript
	exec /usr/bin/chimerax "$@"

