-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
44 lines (34 loc) · 1.2 KB
/
Containerfile
File metadata and controls
44 lines (34 loc) · 1.2 KB
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
32
33
34
35
36
37
38
39
40
41
42
43
44
ARG DESKTOP
ARG EDITION
ARG BASE
# Allow build scripts to be referenced without being copied into the final image
FROM scratch AS ctx
COPY build_files /
FROM ghcr.io/existingperson08/arch-base-cachy:latest as spacefin
ARG DESKTOP
ARG EDITION
ENV DESKTOP=$DESKTOP
ENV EDITION=$EDITION
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=tmpfs,dst=/tmp \
/ctx/build.sh "$DESKTOP" "$EDITION"
COPY system_files/shared /
COPY system_files/desktops/${DESKTOP} /
COPY system_files/editions/${EDITION} /
COPY --from=ghcr.io/ublue-os/brew:latest /system_files /
RUN rm -f /.gitkeep
# Enable custom services
RUN systemctl --global enable bazaar.service
RUN systemctl enable flatpak-preinstall.service
RUN systemctl enable brew-setup.service
RUN systemctl disable brew-upgrade.timer
RUN systemctl disable brew-update.timer
# Enable dconf update service on GTK desktops and update gschemas
RUN if [ "$DESKTOP" = "gnome" ] || [ "$DESKTOP" = "budgie" ]; then \
systemctl enable dconf-update.service && \
glib-compile-schemas /usr/share/glib-2.0/schemas; \
fi
LABEL containers.bootc 1
RUN bootc container lint