initial commit
This commit is contained in:
19
docker/Dockerfile.artix
Normal file
19
docker/Dockerfile.artix
Normal file
@@ -0,0 +1,19 @@
|
||||
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" ]
|
||||
Reference in New Issue
Block a user