diff --git a/archplasma/Dockerfile b/archplasma/Dockerfile index 9c97fdf..aa62c3c 100644 --- a/archplasma/Dockerfile +++ b/archplasma/Dockerfile @@ -7,16 +7,23 @@ ENV STARTXBIN=startplasma-x11 # Install packages RUN --mount=type=cache,sharing=locked,target=/var/cache/pacman \ - pacman -Syu --ask 4 --needed \ - tigervnc \ - cuda openssh vim pacman-contrib rsync git \ - plasma konsole kate dolphin kompare kcalc \ - jack2 ttf-dejavu \ - firefox firefox-decentraleyes firefox-ublock-origin \ - torbrowser-launcher \ - shotwell ffmpegthumbs ark okular \ + pacman-key --init \ + && sed -i '/ParallelDownloads/c ParallelDownloads = 10' /etc/pacman.conf \ + && pacman -Sy --ask 4 archlinux-keyring \ + && pacman -Su --ask 4 --needed \ + sudo bash-completion \ + tigervnc \ + cuda openssh vim pacman-contrib rsync git \ + plasma konsole kate dolphin kompare kcalc \ + jack2 ttf-dejavu \ + firefox firefox-decentraleyes firefox-ublock-origin \ + torbrowser-launcher \ + shotwell ffmpegthumbs ark okular \ && pacman -Scc --ask 4 \ - && echo 'Cmnd_Alias MISCELLANEOUS = /usr/bin/pacman -S' >/etc/sudoers.d/01-MISCELLANEOUS + && useradd --create-home --gid users --shell /usr/bin/bash user \ + && echo 'user ALL=(ALL:ALL) NOPASSWD: MISCELLANEOUS, /usr/bin/pacman -S' >/etc/sudoers.d/zz-DOCKER \ + && echo 'Defaults lecture = never' >>/etc/sudoers.d/zz-DOCKER \ + && passwd -l root >/dev/null 2>&1 # configure nvidia container runtime # https://github.com/NVIDIA/nvidia-container-runtime#environment-variables-oci-spec