-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
27 lines (21 loc) · 945 Bytes
/
Copy pathContainerfile
File metadata and controls
27 lines (21 loc) · 945 Bytes
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
# GitHub Actions normally replaces this moving tag with the exact digest that
# it inspected before the build. Local builds may keep the default.
ARG BAZZITE_IMAGE=ghcr.io/ublue-os/bazzite-gnome:stable
# Make build scripts and system files available without leaving them as a
# separate directory in the finished image.
FROM scratch AS ctx
COPY build_files /
COPY system_files /system_files
COPY cosign.pub /cosign.pub
# Normal AMD/Intel Bazzite GNOME desktop image.
FROM ${BAZZITE_IMAGE}
# Bazzite/Fedora bootable images may make /opt a symlink into mutable /var.
# Brave and the Pantum driver contain application files under /opt, so keep
# /opt inside the immutable image.
RUN if [ -L /opt ]; then rm /opt && mkdir -p /opt; fi
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
RUN bootc container lint