FROM archlinux/base

SHELL ["/bin/bash", "-c"]

# Install baseline packages
RUN pacman --noconfirm -Syu \
    base \
    base-devel \
    git \
    bash \
    curl \
    wget \
    unzip \
    htop \
    man \
    vim \
    sudo \
    python3 \
    openssh \
    ca-certificates

# Add coder user.
RUN useradd -mUs /bin/bash coder && \
  echo "coder ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/nopasswd
USER coder
