mirror of
https://github.com/ManInDark/bootc-image.git
synced 2026-01-20 22:44:28 +01:00
29 lines
760 B
Docker
29 lines
760 B
Docker
FROM scratch AS ctx
|
|
COPY build_files /
|
|
|
|
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 \
|
|
/ctx/01_pre_desktop.sh
|
|
|
|
ARG DESKTOP_ENVIRONMENT="gnome"
|
|
|
|
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/02_${DESKTOP_ENVIRONMENT}.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/03_post_desktop.sh
|
|
|
|
RUN bootc container lint
|