forked from ublue-os/image-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContainerfile
More file actions
39 lines (35 loc) · 1022 Bytes
/
Copy pathContainerfile
File metadata and controls
39 lines (35 loc) · 1022 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
28
29
30
31
32
33
34
35
36
37
38
39
ARG REPO_SOURCE="ghcr.io"
ARG REPO_OWNER="ublue-os"
ARG BASE_IMAGE="ucore-minimal"
ARG TAG_VERSION="stable-zfs"
# Allow build scripts to be referenced without being copied into the final image
FROM scratch AS ctx
COPY build_files /
COPY cosign.pub /signing
#0 Base Image
FROM ${REPO_SOURCE}/${REPO_OWNER}/${BASE_IMAGE}:${TAG_VERSION}
# Run all container build scripts
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 \
set -e; \
for script in \
remove-packages \
tweaks \
greenboot \
man \
cockpit \
samba \
terminal \
fusion-packages \
media \
github \
; do \
echo "=== Running $script.sh ==="; \
bash /ctx/$script.sh; \
ostree container commit; \
done
# Optional/Commented out scripts
# bash /ctx/nix.sh && ostree container commit
# bash /ctx/booster.sh && ostree container commit