generated from ublue-os/image-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathContainerfile
36 lines (27 loc) · 1.15 KB
/
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
32
33
34
35
36
ARG SOURCE_IMAGE="bazzite"
ARG SOURCE_SUFFIX="nvidia"
ARG SOURCE_TAG="stable"
FROM ghcr.io/ublue-os/${SOURCE_IMAGE}-${SOURCE_SUFFIX}:${SOURCE_TAG}
ARG KERNEL_FLAVOR=""
COPY filesystem /
COPY ["scripts","data", "/tmp/buildtmp/"]
# Display a nice banner telling the user about this build.
RUN --mount=type=cache,dst=/var/cache/rpm-ostree \
/tmp/buildtmp/prebuild.sh
RUN --mount=type=cache,dst=/var/cache/rpm-ostree \
echo -e "\033[1;32m==[ Package Installation ]==\033[0m" && \
mkdir -p /var/lib/alternatives && \
/tmp/buildtmp/install_packages.sh
RUN --mount=type=cache,dst=/var/cache/rpm-ostree \
echo -e "\033[1;32m==[ Services ]==\033[0m" && \
/tmp/buildtmp/configure_services.sh
RUN --mount=type=cache,dst=/var/cache/rpm-ostree \
echo -e "\033[1;32m==[ Justfiles ]==\033[0m" && \
/tmp/buildtmp/just.sh
RUN --mount=type=cache,dst=/var/cache/rpm-ostree \
echo -e "\033[1;32m==[ Initramfs ]==\033[0m" && \
/usr/libexec/containerbuild/build-initramfs
RUN --mount=type=cache,dst=/var/cache/rpm-ostree \
echo -e "\033[1;32m==[ Cleanup ]==\033[0m" && \
/usr/libexec/containerbuild/cleanup.sh && \
ostree container commit