Skip to content

Instantly share code, notes, and snippets.

@etherealHero
Last active September 30, 2025 13:24
Show Gist options
  • Select an option

  • Save etherealHero/c3008c7e646f29863e6abc3eaeb51934 to your computer and use it in GitHub Desktop.

Select an option

Save etherealHero/c3008c7e646f29863e6abc3eaeb51934 to your computer and use it in GitHub Desktop.
Dev container with AstroNvim & Zellij
FROM alpine:3.22
RUN apk update && \
apk upgrade && \
apk add --no-cache \
zsh \
git \
curl \
neovim \
ripgrep \
musl-dev \
gcc \
nodejs \
npm \
perl \
bash \
sudo \
zellij
RUN adduser -S dev -G wheel -s /bin/zsh -h /home/dev && \
echo 'dev ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
USER dev
WORKDIR /home/dev
RUN git clone --depth 1 https://github.com/AstroNvim/template ~/.config/nvim && \
rm -rf ~/.config/nvim/.git && \
nvim --headless "+Lazy! sync" +qa && \
sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" "" --unattended && \
echo 'export SHELL=/bin/zsh' >> ~/.zshrc
CMD ["zsh"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment