File tree Expand file tree Collapse file tree 1 file changed +3
-7
lines changed
Expand file tree Collapse file tree 1 file changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -15,19 +15,16 @@ ARG user=user
1515RUN mkdir -p /usr/libexec/git-core/ \
1616 && ln -s /usr/lib/git-core/git-credential-libsecret /usr/libexec/git-core/git-credential-libsecret
1717
18- RUN echo 'ZDOTDIR=${XDG_CONFIG_HOME:-$HOME/.config}/zsh' > /etc/zshenv
19-
2018RUN useradd -r -md /home/${user} -s /bin/zsh --uid 1010 ${user} \
2119 && echo "%${user} ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers \
2220 && mkdir -p /home/${user}/build-root
2321
2422COPY --chown=${user}:${user} . /home/${user}/build-root
2523
2624USER ${user}
27- RUN curl -s -o /home/${user}/zshrc https://raw.githubusercontent.com/bbhtt/dotfiles/refs/heads/main/zshrc
28- RUN printf "echo 'A zsh config is provided at ~/zshrc, move it to ~/.zshrc to have effect'\n " > ~/.zshrc
29- RUN mkdir -p ~/.config && echo -e "cache:\n quota: 50G" > ~/.config/buildstream.conf
25+
3026RUN cd /home/${user}/build-root && ./makepkg.sh
27+
3128RUN sudo install -Dm0755 /home/${user}/build-root/abicheck.sh /usr/bin/abicheck
3229RUN sudo install -Dm0755 /home/${user}/build-root/single-updater.py /usr/bin/single-updater
3330
@@ -42,7 +39,6 @@ RUN sudo pacman --noconfirm -Syyuu \
4239 && pacman -Q | grep "\- debug" | cut -d ' ' -f 1 | xargs -r sudo pacman -Rs --noconfirm \
4340 && sudo pacman -Scc --noconfirm \
4441 && sudo rm -rf /tmp/* \
42+ && userdel -r -f ${user} \
4543 && sudo rm -rf /home/${user}/build-root \
4644 && sudo sed -i "/^%${user} ALL=(ALL) NOPASSWD: ALL$/d" /etc/sudoers
47-
48- WORKDIR /home/${user}
You can’t perform that action at this time.
0 commit comments