mirror of
https://github.com/optim-enterprises-bv/secureblue.git
synced 2025-11-07 05:47:53 +00:00
26 lines
1.0 KiB
Docker
26 lines
1.0 KiB
Docker
# Multi-stage build
|
|
ARG FEDORA_MAJOR_VERSION=37
|
|
|
|
## Build ublue-os-base
|
|
FROM quay.io/fedora-ostree-desktops/silverblue:${FEDORA_MAJOR_VERSION}
|
|
# See https://pagure.io/releng/issue/11047 for final location
|
|
|
|
# Add Vanilla First Setup
|
|
RUN wget https://copr.fedorainfracloud.org/coprs/ublue-os/vanilla-first-setup/repo/fedora-$(rpm -E %fedora)/ublue-os-vanilla-first-setup-fedora-$(rpm -E %fedora).repo -O /etc/yum.repos.d/_copr_ublue-os-vanilla-first-setup.repo
|
|
|
|
COPY etc /etc
|
|
COPY usr /usr
|
|
|
|
COPY ublue-firstboot /usr/bin
|
|
|
|
RUN rpm-ostree override remove firefox firefox-langpacks && \
|
|
rpm-ostree install distrobox gnome-tweaks just vte291-gtk4-devel vanilla-first-setup && \
|
|
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
|
|
systemctl enable rpm-ostreed-automatic.timer && \
|
|
systemctl enable flatpak-system-update.timer && \
|
|
sed -i 's@enabled=1@enabled=0@g' /etc/yum.repos.d/_copr_ublue-os-vanilla-first-setup.repo && \
|
|
rm -rf \
|
|
/tmp/* \
|
|
/var/* && \
|
|
ostree container commit
|