20 lines
548 B
Docker
20 lines
548 B
Docker
FROM artixlinux/artixlinux:base-devel
|
|
|
|
COPY scripts/entrypoint.sh /scripts/entrypoint.sh
|
|
COPY scripts/testing.artix.sh /scripts/testing.sh
|
|
|
|
ARG MIRROR=https://mirror.sanin.dev/artix-linux/\$repo/os/\$arch
|
|
|
|
RUN sed -i '1iServer = $MIRROR' /etc/pacman.d/mirrorlist && \
|
|
pacman -Syu --noconfirm git clang sudo vim glibc openssh bash-completion && \
|
|
chmod +x /scripts/* && \
|
|
useradd -m user && \
|
|
echo "user:pass-$RANDOM" | chpasswd && \
|
|
echo 'user ALL=(ALL) NOPASSWD: ALL' >> /etc/sudoers
|
|
|
|
USER user
|
|
|
|
WORKDIR /home/user/
|
|
|
|
CMD [ "/bin/bash" ]
|