generated from ublue-os/image-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
36 lines (29 loc) · 1.08 KB
/
Containerfile
File metadata and controls
36 lines (29 loc) · 1.08 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
# Allow build scripts to be referenced without being copied into the final image
FROM scratch AS ctx
COPY build_files /
# Base Image
FROM ghcr.io/ublue-os/bazzite-gnome:stable as DistinctionOS
#FROM quay.io/fedora/fedora-bootc:42
# Cleanup & Finalize
COPY system_files/ /
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 \
echo -e "\033[31mKERNEL INSTALLER >>>>\033[0m" && \
/ctx/00-kernel.sh && \
echo -e "\033[31mKERENEL SCRIPT >>>>\033[0m" && \
/ctx/01-kernel-modules.sh && \
echo -e "\033[31mBUILD SCRIPT >>>>\033[0m" && \
/ctx/02-build.sh && \
echo -e "\033[31mOPT FIXER >>>>\033[0m" && \
/ctx/03-fix-opt.sh && \
echo -e "\033[31mSYSTEM CONFIG >>>>\033[0m" && \
/ctx/04-config.sh && \
echo -e "\033[31mREMOTE GRABBER >>>>\033[0m" && \
/ctx/06-remote-grabber.sh && \
echo -e "\033[31mOSTREE COMMIT\033[0m" && \
ostree container commit
### LINTING
## Verify final image and contents are correct.
#RUN bootc container lint