| # debian.sh --arch 'arm64' out/ 'sid' '@1763337600' |
| RUN /bin/sh -c apt update -y && apt upgrade -y # buildkit |
| RUN /bin/sh -c apt install -y curl wget zsh neovim openssh-client zsh-syntax-highlighting sudo tree git unzip # buildkit |
| RUN /bin/sh -c mkdir /code # buildkit |
| RUN /bin/sh -c chmod 777 /code # buildkit |
| RUN /bin/sh -c useradd -ms /usr/bin/zsh affine # buildkit |
| WORKDIR /home/affine |
| RUN /bin/sh -c echo "affine ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers # buildkit |
| USER affine |
| RUN /bin/sh -c mkdir ~/bin # buildkit |
| RUN /bin/sh -c wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/refs/heads/master/tools/install.sh -O - | zsh # buildkit |
| RUN /bin/sh -c sed -i 's/robbyrussell/fino-time/g' .zshrc # buildkit |
| RUN /bin/sh -c echo 'export PATH=/home/affine/bin:$PATH' >> .zshrc # buildkit |
| RUN /bin/sh -c echo 'export HISTFILE=/Downloads/docker-histfile' >> .zshrc # buildkit |
| RUN /bin/sh -c mkdir -p .ssh/ # buildkit |
| COPY secrets/ssh_1.pub secrets/ssh_1 .ssh/ # buildkit |
| COPY secrets/ssh_2.pub secrets/ssh_2 .ssh/ # buildkit |
| COPY assets/ssh_client_config .ssh/config # buildkit |
| COPY secrets/.netrc .netrc # buildkit |
| RUN /bin/sh -c echo "alias nextcloudcmd=nextcloudcmd -n ~/.netrc" >> .zshrc # buildkit |
| COPY assets/message /msg # buildkit |
| RUN /bin/sh -c echo "cat /msg" >> .zshrc # buildkit |
| RUN /bin/sh -c mkdir -p .config # buildkit |
| COPY assets/.vim .vim # buildkit |
| COPY assets/nvim-small .config/nvim # buildkit |
| COPY assets/.gitconfig .gitconfig # buildkit |
| COPY assets/gitconfig /workies_gitconfig # buildkit |
| RUN /bin/sh -c curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim # buildkit |
| USER root |
| RUN /bin/sh -c chown -R affine:affine .vim # buildkit |
| RUN /bin/sh -c chown affine:affine /workies_gitconfig # buildkit |
| RUN /bin/sh -c chown affine:affine .gitconfig # buildkit |
| USER affine |
| RUN /bin/sh -c nvim --headless +'PlugInstall --sync' +qa # buildkit |
| USER root |
| RUN /bin/sh -c apt clean # buildkit |
| USER affine |
| ENTRYPOINT ["/usr/bin/zsh" "--login"] |