Update Dockerfile
This commit is contained in:
parent
4a04ef31ed
commit
3eb150c9cf
1 changed files with 12 additions and 5 deletions
17
Dockerfile
17
Dockerfile
|
|
@ -52,8 +52,6 @@ rpm-ostree install bore-sysctl && \
|
||||||
rpm-ostree install hfsplus-tools && \
|
rpm-ostree install hfsplus-tools && \
|
||||||
# install Nvidia software
|
# install Nvidia software
|
||||||
rpm-ostree install nvidia-vaapi-driver nvidia-persistenced opencl-filesystem && \
|
rpm-ostree install nvidia-vaapi-driver nvidia-persistenced opencl-filesystem && \
|
||||||
# Install VirtualBox
|
|
||||||
rpm-ostree install VirtualBox && \
|
|
||||||
# install Mullvad VPN
|
# install Mullvad VPN
|
||||||
mkdir /var/opt && rpm-ostree install https://mullvad.net/da/download/app/rpm/latest && \
|
mkdir /var/opt && rpm-ostree install https://mullvad.net/da/download/app/rpm/latest && \
|
||||||
mv "/opt/Mullvad VPN" /usr/lib/opt/ && \
|
mv "/opt/Mullvad VPN" /usr/lib/opt/ && \
|
||||||
|
|
@ -79,9 +77,6 @@ COPY --from=ghcr.io/ublue-os/akmods-nvidia:38-535 /rpms /tmp/akmods-rpms
|
||||||
RUN rpm-ostree install \
|
RUN rpm-ostree install \
|
||||||
/tmp/akmods-rpms/ublue-os/ublue-os-nvidia-addons-*.rpm
|
/tmp/akmods-rpms/ublue-os/ublue-os-nvidia-addons-*.rpm
|
||||||
|
|
||||||
# install kernel headers
|
|
||||||
RUN rpm-ostree uninstall kernel-cachyos-bore-eevdf-rt-headers --install kernel-cachyos-lts-headers
|
|
||||||
|
|
||||||
RUN rpm-ostree install \
|
RUN rpm-ostree install \
|
||||||
xorg-x11-drv-nvidia{,-cuda,-devel,-kmodsrc} \
|
xorg-x11-drv-nvidia{,-cuda,-devel,-kmodsrc} \
|
||||||
xorg-x11-drv-nvidia-libs.i686 \
|
xorg-x11-drv-nvidia-libs.i686 \
|
||||||
|
|
@ -104,6 +99,9 @@ RUN rpm-ostree cliwrap install-to-root / && \
|
||||||
# Replace the kernel, kernel-core and kernel-modules packages.
|
# Replace the kernel, kernel-core and kernel-modules packages.
|
||||||
rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra --install kernel-cachyos-lts
|
rpm-ostree override remove kernel kernel-core kernel-modules kernel-modules-core kernel-modules-extra --install kernel-cachyos-lts
|
||||||
|
|
||||||
|
# install kernel headers
|
||||||
|
RUN rpm-ostree install kernel-cachyos-lts-headers
|
||||||
|
|
||||||
# install akmods
|
# install akmods
|
||||||
RUN ls /tmp/nvidia && /tmp/install-nvidia.sh
|
RUN ls /tmp/nvidia && /tmp/install-nvidia.sh
|
||||||
|
|
||||||
|
|
@ -114,3 +112,12 @@ RUN ln -s /etc/alternatives/ld /usr/bin/ld
|
||||||
# Clear cache, /var and /tmp and commit ostree
|
# Clear cache, /var and /tmp and commit ostree
|
||||||
RUN rpm-ostree cleanup -m && rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
RUN rpm-ostree cleanup -m && rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
||||||
ostree container commit
|
ostree container commit
|
||||||
|
|
||||||
|
FROM builder2 AS builder3
|
||||||
|
|
||||||
|
# Install VirtualBox
|
||||||
|
RUN rpm-ostree install VirtualBox
|
||||||
|
|
||||||
|
# Clear cache, /var and /tmp and commit ostree
|
||||||
|
RUN rpm-ostree cleanup -m && rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
||||||
|
ostree container commit
|
||||||
Loading…
Add table
Add a link
Reference in a new issue