-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathContainerfile.in
More file actions
65 lines (53 loc) · 1.84 KB
/
Copy pathContainerfile.in
File metadata and controls
65 lines (53 loc) · 1.84 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
ARG BASE_IMAGE="ghcr.io/ublue-os/bazzite-gnome"
ARG TAG_VERSION="latest@sha256:64284f7db91e518eaaef45871cc9e68fc58df8a3ff569c76617fb4ac2b23995f"
FROM scratch AS ctx
COPY build_files cosign.pub /
FROM ${BASE_IMAGE}:${TAG_VERSION} AS veneos
COPY system_files/etc /etc
COPY system_files/usr/share /usr/share
ARG BASE_IMAGE="ghcr.io/ublue-os/bazzite-gnome"
ARG TAG_VERSION="latest"
ARG SET_X=""
#ifdef GHCI
ARG CI="1"
#endif /* GHCI */
RUN --mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=bind,from=ctx,src=/,dst=/ctx \
--mount=type=tmpfs,dst=/tmp \
/ctx/server-packages.sh
RUN --mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=bind,from=ctx,src=/,dst=/ctx \
--mount=type=tmpfs,dst=/tmp \
/ctx/signing.sh
#ifdef BAZZITE
RUN --mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=bind,from=ctx,src=/,dst=/ctx \
--mount=type=tmpfs,dst=/tmp \
/ctx/desktop-packages.sh
RUN --mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=bind,from=ctx,src=/,dst=/ctx \
--mount=type=tmpfs,dst=/tmp \
/ctx/desktop-sysext.sh
RUN --mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=bind,from=ctx,src=/,dst=/ctx \
--mount=type=tmpfs,dst=/tmp \
/ctx/just-files.sh
RUN --mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=bind,from=ctx,src=/,dst=/ctx \
--mount=type=tmpfs,dst=/tmp \
/ctx/desktop-defaults.sh
#endif /* BAZZITE */
RUN --mount=type=cache,dst=/var/cache \
--mount=type=cache,dst=/var/log \
--mount=type=bind,from=ctx,src=/,dst=/ctx \
--mount=type=tmpfs,dst=/tmp \
/ctx/overrides.sh
RUN --mount=type=bind,from=ctx,src=/,dst=/ctx \
/ctx/cleanup.sh
RUN ["bootc", "container", "lint"]