mirror of
https://github.com/ManInDark/bootc-image.git
synced 2026-01-20 22:44:28 +01:00
feat: turns out you can just use base-nvidia for the drivers
This commit is contained in:
@@ -1,23 +1,10 @@
|
||||
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
|
||||
FROM ghcr.io/ublue-os/base-nvidia: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/00_nvidia.sh
|
||||
|
||||
RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
|
||||
--mount=type=cache,dst=/var/cache \
|
||||
--mount=type=cache,dst=/var/log \
|
||||
@@ -38,10 +25,4 @@ RUN --mount=type=bind,from=ctx,source=/,target=/ctx \
|
||||
--mount=type=tmpfs,dst=/tmp \
|
||||
/ctx/03_post_desktop.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/04_initramfs.sh
|
||||
|
||||
RUN bootc container lint
|
||||
|
||||
Reference in New Issue
Block a user