Files
neovim/Dockerfile
Catalin Constantin Mititiuc 8a011ae3c6 Use noninteractive frontend when installing packages
to silence 'unable to initialize frontend' messages
2026-07-28 09:35:32 -07:00

23 lines
624 B
Docker

FROM debian:unstable
RUN apt-get update \
&& DEBIAN_FRONTEND=noninteractive apt-get install -q -y \
locales git curl ripgrep tree-sitter-cli build-essential neovim
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
&& locale-gen
ENV LANG=en_US.UTF-8
ENV LANGUAGE=en_US:en
ENV LC_ALL=en_US.UTF-8
WORKDIR /opt
COPY init.vim .
RUN mkdir -p ~/.config/nvim \
&& mv ./init.vim ~/.config/nvim
RUN sh -c 'curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
RUN nvim -c "PlugInstall" -c "qall" \
&& nvim -c "TSUpdate" -c "qall"