30 lines
622 B
Docker
30 lines
622 B
Docker
|
FROM archlinux:latest
|
||
|
|
||
|
ARG uid=1000
|
||
|
ARG gid=1000
|
||
|
|
||
|
RUN groupadd -g ${gid} doer \
|
||
|
&& useradd -u ${uid} -g doer -m -d /doer doer \
|
||
|
&& pacman -Sy --noconfirm \
|
||
|
base-devel \
|
||
|
glibc \
|
||
|
git \
|
||
|
sudo \
|
||
|
python-commonmark \
|
||
|
pyalpm \
|
||
|
&& chmod 600 /etc/sudoers \
|
||
|
&& sed -i"" '/root ALL.*/a doer ALL=(ALL) NOPASSWD:ALL' /etc/sudoers \
|
||
|
&& chmod 440 /etc/sudoers
|
||
|
|
||
|
VOLUME ["/var/lib/pacman", "/var/cache/pacman"]
|
||
|
|
||
|
USER doer
|
||
|
WORKDIR /doer
|
||
|
|
||
|
RUN git clone https://aur.archlinux.org/pikaur.git \
|
||
|
&& cd pikaur \
|
||
|
&& makepkg -fsri --noconfirm
|
||
|
|
||
|
ENTRYPOINT ["/usr/bin/pikaur"]
|
||
|
CMD []
|