docker-arch/Dockerfile
2021-10-09 15:20:08 +02:00

15 lines
345 B
Docker

FROM archlinux:base-devel
RUN pacman -Syu --noconfirm \
git \
base
RUN useradd -l -G wheel,storage,power -m -s /bin/bash -p archie archie \
&& sed -i.bkp -e 's/%sudo\s\+ALL=(ALL\(:ALL\)\?)\s\+ALL/%sudo ALL=NOPASSWD:ALL/g' /etc/sudoers
USER archie
RUN sudo echo "Running 'sudo' for archie: success"
RUN mkdir -p /home/archie