35 lines
1.5 KiB
Docker
35 lines
1.5 KiB
Docker
FROM quay.io/fedora/fedora-bootc:41
|
|
|
|
#include unit files and containers
|
|
ADD system_files/shared/etc etc
|
|
#ADD usr usr
|
|
|
|
#add additional software
|
|
#RUN dnf install -y cockpit cockpit-podman cockpit-storaged cockpit-ws git lm_sensors sysstat tuned vim-enhanced bash-completion && dnf clean all
|
|
RUN <<EOF
|
|
set -ouex pipefail
|
|
|
|
dnf install --assumeyes 'dnf5-command(config-manager)'
|
|
dnf config-manager setopt excludepkgs=PackageKit,PackageKit-command-not-found,PackageKit-gstreamer-plugin,rootfiles,firefox,sway-config-fedora,crontabs
|
|
dnf config-manager setopt assumeyes=True
|
|
dnf config-manager setopt install_weak_deps=False
|
|
|
|
dnf install --quiet @sway-desktop-environment
|
|
dnf group install --quiet --with-optional container-management swaywm-extended
|
|
dnf install --quiet go wireguard-tools neovim age aria2 android-tools croc p7zip p7zip-plugins rclone restic sshuttle tuned upower
|
|
|
|
dnf remove --quiet @guest-desktop-agents
|
|
dnf remove --quiet vim-data vim-minimal default-editor foot dunst WALinuxAgent-udev NetworkManager-cloud-setup chrony
|
|
|
|
dnf autoremove && dnf clean all
|
|
|
|
QUALIFIED_KERNEL="$(dnf repoquery --installed --queryformat='%{evr}.%{arch}' kernel)"
|
|
dracut --no-hostonly --kver "$QUALIFIED_KERNEL" --reproducible --verbose --add ostree --zstd --force "/lib/modules/$QUALIFIED_KERNEL/initramfs.img"
|
|
|
|
rm --force --recursive /tmp/* /var/*
|
|
mkdir --parents /var/tmp
|
|
chmod --recursive 1777 /var/tmp
|
|
|
|
ostree container commit
|
|
bootc container lint
|
|
EOF
|