Skip to content

Commit

Permalink
Merge branch 'main' into vim-which-key
Browse files Browse the repository at this point in the history
  • Loading branch information
vicnett authored Nov 16, 2024
2 parents 66d20be + 7a39a22 commit e5acfba
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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" ]

0 comments on commit e5acfba

Please sign in to comment.