mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-04 02:40:05 +00:00
55 lines
2.4 KiB
Docker
55 lines
2.4 KiB
Docker
FROM ghcr.io/ublue-os/kinoite-nvidia:latest
|
|
|
|
COPY etc /etc
|
|
COPY usr /usr
|
|
RUN ln -s /usr/bin/steamos-logger /usr/bin/steamos-info && \
|
|
ln -s /usr/bin/steamos-logger /usr/bin/steamos-notice && \
|
|
ln -s /usr/bin/steamos-logger /usr/bin/steamos-warning
|
|
|
|
# Add Copr repos
|
|
RUN wget https://copr.fedorainfracloud.org/coprs/kylegospo/bazzite/repo/fedora-$(rpm -E %fedora)/kylegospo-bazzite-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-bazzite.repo && \
|
|
wget https://copr.fedorainfracloud.org/coprs/kylegospo/LatencyFleX/repo/fedora-$(rpm -E %fedora)/kylegospo-LatencyFleX-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-latencyflex.repo && \
|
|
wget https://copr.fedorainfracloud.org/coprs/kylegospo/hl2linux-selinux/repo/fedora-$(rpm -E %fedora)/kylegospo-hl2linux-selinux-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_kylegospo-hl2linux-selinux.repo
|
|
|
|
# Install new packages
|
|
RUN rpm-ostree install \
|
|
distrobox \
|
|
steam \
|
|
gamescope \
|
|
gamescope-session \
|
|
jupiter-fan-control \
|
|
jupiter-hw-support-btrfs \
|
|
steamdeck-kde-presets \
|
|
gamemode \
|
|
latencyflex-vulkan-layer \
|
|
hl2linux-selinux \
|
|
wallpaper-engine-kde-plugin \
|
|
vkBasalt \
|
|
mangohud \
|
|
duperemove \
|
|
kdeconnectd \
|
|
btop \
|
|
fish \
|
|
kate
|
|
|
|
# Install dock updater, this is done manually as it has proprietary parts and cannot be built in Copr.
|
|
RUN git clone https://github.com/KyleGospo/jupiter-dock-updater-bin.git && \
|
|
mv -v jupiter-dock-updater-bin/packaged/usr/lib/jupiter-dock-updater /usr/lib/jupiter-dock-updater
|
|
|
|
# Remove unneeded packages
|
|
RUN rpm-ostree override remove toolbox
|
|
|
|
# Cleanup & Finalize
|
|
RUN sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-bazzite.repo && \
|
|
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-latencyflex.repo && \
|
|
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_kylegospo-hl2linux-selinux.repo && \
|
|
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/user.conf && \
|
|
sed -i 's/#DefaultTimeoutStopSec.*/DefaultTimeoutStopSec=15s/' /etc/systemd/system.conf && \
|
|
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
|
|
systemctl enable rpm-ostreed-automatic.timer && \
|
|
rm -rf \
|
|
/tmp/* \
|
|
/var/* && \
|
|
mkdir -p /var/lib/duperemove && \
|
|
ostree container commit
|