forked from ublue-os/base
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
31 lines (25 loc) · 975 Bytes
/
Containerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# 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
COPY etc /etc
COPY usr /usr
COPY ublue-firstboot /usr/bin
COPY recipe.yml /etc/ublue-recipe.yml
COPY --from=docker.io/mikefarah/yq /usr/bin/yq /usr/bin/yq
RUN rpm-ostree override remove firefox firefox-langpacks && \
echo "-- Installing RPMs defined in recipe.yml --" && \
rpm_packages=$(yq '.rpms[]' < /etc/ublue-recipe.yml) && \
for pkg in $rpm_packages; do \
echo "Installing: ${pkg}" && \
rpm-ostree install $pkg; \
done && \
echo "---" && \
sed -i 's/#AutomaticUpdatePolicy.*/AutomaticUpdatePolicy=stage/' /etc/rpm-ostreed.conf && \
systemctl enable rpm-ostreed-automatic.timer && \
systemctl enable flatpak-system-update.timer && \
rm -rf \
/tmp/* \
/var/* && \
ostree container commit