1
0
Fork 0
ostree-native-containers/Dockerfile.gnome
ver4a b417eb2680
Some checks failed
/ build-gnome (push) Waiting to run
/ build-kde (push) Has been cancelled
Stop deleting rpm metadata unnecessarily
"ostree container commit" already removes everything in /var/cache, see
FORCE_CLEAN_PATHS in https://github.com/ostreedev/ostree-rs-ext/pull/367/commits/a913ab0d5a451dd21f099c4f22de8ee366269879 for full list of cleaned directories.
2024-11-14 16:45:56 +01:00

30 lines
1.5 KiB
Text

FROM quay.io/fedora-ostree-desktops/silverblue:41
# dnf configuration has to be in effect during build
COPY etc/dnf /etc/dnf
# Add rpmfusion repositories (this sometimes fails, so it has 3 tries before failing the build)
RUN (dnf5 -y install 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) || \
(sleep 60 && dnf5 -y install 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) || \
(sleep 60 && dnf5 -y install 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)
# Install ffmpeg (removing all the -free replacements is required)
RUN dnf5 -y install --allowerasing ffmpeg
# Install openh264
RUN dnf5 -y swap noopenh264 openh264 && dnf5 -y install mozilla-openh264
# Bulk of layered packages
RUN dnf5 -y install virt-manager libvirt vim neovim bat btop pv restic zstd nmap-ncat
# Set vim as default editor
RUN dnf5 -y swap nano-default-editor vim-default-editor
# Remove default color prompt (is replaced with a custom one)
RUN dnf5 -y remove bash-color-prompt
# Apply configuration
COPY etc /etc
# https://github.com/ostreedev/ostree-rs-ext/issues/159
RUN ostree container commit