-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathContainerfile
More file actions
55 lines (45 loc) · 1.66 KB
/
Copy pathContainerfile
File metadata and controls
55 lines (45 loc) · 1.66 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
ARG BASE_IMAGE
FROM scratch AS ctx
COPY build_files /build_files
COPY repo_files /repo_files
COPY system_files /system_files
COPY system_modules /system_modules
FROM ${BASE_IMAGE}
ARG IMAGE_NAME="${IMAGE_NAME:-bazzite-mdev}"
ARG IMAGE_VENDOR="${IMAGE_VENDOR:-mdev-linux}"
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache/libdnf5 \
--mount=type=tmpfs,dst=/run \
--mount=type=tmpfs,dst=/tmp \
--mount=type=tmpfs,dst=/var \
/ctx/build_files/build.sh && \
/ctx/build_files/cleanup.sh
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache/libdnf5 \
--mount=type=tmpfs,dst=/run \
--mount=type=tmpfs,dst=/tmp \
--mount=type=tmpfs,dst=/var \
/ctx/build_files/build-kdebug.sh && \
/ctx/build_files/cleanup.sh
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache/libdnf5 \
--mount=type=tmpfs,dst=/run \
--mount=type=tmpfs,dst=/tmp \
--mount=type=tmpfs,dst=/var \
/ctx/build_files/build-kdump.sh && \
/ctx/build_files/cleanup.sh
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache/libdnf5 \
--mount=type=tmpfs,dst=/run \
--mount=type=tmpfs,dst=/tmp \
--mount=type=tmpfs,dst=/var \
/ctx/build_files/build-envision.sh && \
/ctx/build_files/cleanup.sh
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
--mount=type=cache,dst=/var/cache/libdnf5 \
--mount=type=tmpfs,dst=/run \
--mount=type=tmpfs,dst=/tmp \
--mount=type=tmpfs,dst=/var \
/ctx/build_files/build-gnome-extensions.sh && \
/ctx/build_files/cleanup.sh
RUN bootc container lint