diff --git a/Dockerfile b/Dockerfile index b805fac..727a5c6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -22,18 +22,19 @@ ENTRYPOINT [ "/usr/bin/bash", "--login" ] FROM arch-base AS install -# Install pipx, Ansible, and the packages Ansible will install so this step will -# be cached and not re-run every single docker build. Ansible is super slow to -# install for some reason, and there's no need to excessively download packages -# from the Manjaro repo every build... -COPY manjaro_packages . +# Install pipx and Ansible so this step will be cached and not re-run every +# single docker build. Ansible is super slow to install for some reason... RUN <<-EOF export USE_EMOJI=0 sudo pacman -S --needed --noconfirm python-pipx - sudo pacman -S --needed --noconfirm - < manjaro_packages pipx install --include-deps ansible EOF +# Install the packages Ansible will want to install later. There's no need to +# excessively download packages from the Manjaro repo every build... +COPY manjaro_packages . +RUN sudo pacman -S --needed --noconfirm - < manjaro_packages + FROM install AS copy # Copy repo to its destination @@ -46,6 +47,12 @@ RUN <<-EOF USE_EMOJI=0 ./setup.sh EOF +# Run Zsh so Zinit can get set up +RUN <<-EOF + zsh -i -c -- '@zinit-scheduler burst' + nvim --headless "+Lazy! restore" +qa +EOF + # Now that zsh is (or should be) installed, we can make the entrypoint an # interactive zsh shell ENTRYPOINT [ "/usr/bin/zsh", "--login" ]