parent
a1f7bd3a65
commit
5da728f5e7
1 changed files with 12 additions and 0 deletions
12
Dockerfile
12
Dockerfile
|
|
@ -59,6 +59,12 @@ RUN sed -i 's/zram-size.*/zram-size = min(ram, 16384)/' /usr/lib/systemd/zram-ge
|
||||||
# Copy config files
|
# Copy config files
|
||||||
COPY etc /etc
|
COPY etc /etc
|
||||||
|
|
||||||
|
# Clear cache, /var and /tmp and commit ostree
|
||||||
|
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
||||||
|
ostree container commit
|
||||||
|
|
||||||
|
FROM builder AS builder2
|
||||||
|
|
||||||
COPY --from=ghcr.io/ublue-os/akmods-nvidia:38-535 /rpms /tmp/akmods-rpms
|
COPY --from=ghcr.io/ublue-os/akmods-nvidia:38-535 /rpms /tmp/akmods-rpms
|
||||||
|
|
||||||
RUN rpm-ostree install \
|
RUN rpm-ostree install \
|
||||||
|
|
@ -109,6 +115,12 @@ RUN semodule --verbose --install /usr/share/selinux/packages/nvidia-container.pp
|
||||||
RUN ln -s /usr/bin/ld.bfd /etc/alternatives/ld
|
RUN ln -s /usr/bin/ld.bfd /etc/alternatives/ld
|
||||||
RUN ln -s /etc/alternatives/ld /usr/bin/ld
|
RUN ln -s /etc/alternatives/ld /usr/bin/ld
|
||||||
|
|
||||||
|
# Clear cache, /var and /tmp and commit ostree
|
||||||
|
RUN rm -rf /tmp/* /var/* && mkdir -p /var/tmp && chmod -R 1777 /var/tmp && \
|
||||||
|
ostree container commit
|
||||||
|
|
||||||
|
FROM builder2 AS builder3
|
||||||
|
|
||||||
# Install VirtualBox
|
# Install VirtualBox
|
||||||
RUN rpm-ostree install VirtualBox
|
RUN rpm-ostree install VirtualBox
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue