update arch dev dockerfile

remove old files
This commit is contained in:
DefectingCat
2023-12-20 09:07:35 +08:00
parent 1426ad0a51
commit 6f8421195e
2 changed files with 3 additions and 0 deletions

View File

@ -11,6 +11,8 @@ RUN useradd --groups wheel --no-create-home --shell /bin/zsh ${USER} \
&& chmod 0440 /etc/sudoers.d/${USER} \
&& usermod -s "$(which zsh)" ${USER}
WORKDIR /home/${USER}
RUN rm -rf /home/${USER}/dotfiles \
&& rm -rf /home/${USER}/yay
RUN chown -R "${USER}":"${USER}" /home/"${USER}"
USER ${USER}

View File

@ -5,6 +5,7 @@ cd /home/"$USER"/ || exit
git clone https://aur.archlinux.org/yay.git
cd /home/"$USER"/yay || exit
makepkg -si --noconfirm
cd /home/"$USER"/ || exit
rm -rf yay
echo "install yay success"