mirror of
https://github.com/ManInDark/bootc-image.git
synced 2026-01-21 06:54:28 +01:00
34 lines
1.0 KiB
Docker
34 lines
1.0 KiB
Docker
FROM scratch AS ctx
|
|
COPY build_files /
|
|
|
|
FROM ghcr.io/ublue-os/akmods:main-43 AS akmods
|
|
|
|
FROM ghcr.io/ublue-os/akmods-nvidia-open:main-43 AS akmods_nvidia
|
|
|
|
FROM ghcr.io/ublue-os/base-main:43
|
|
|
|
RUN rm -r /opt && mkdir /opt
|
|
|
|
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 \
|
|
--mount=type=bind,from=akmods,src=/rpms/ublue-os,dst=/tmp/akmods-rpms \
|
|
--mount=type=bind,from=akmods,src=/kernel-rpms,dst=/tmp/kernel-rpms \
|
|
--mount=type=bind,from=akmods_nvidia,src=/rpms,dst=/tmp/akmods-nv-rpms \
|
|
/ctx/nvidia.sh
|
|
|
|
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 \
|
|
/ctx/build.sh
|
|
|
|
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 \
|
|
/ctx/initramfs.sh
|
|
|
|
RUN bootc container lint
|