kickstart.nvim/Dockerfile
Tuna Alikaşifoğlu 7673367341
fix(cmd): remove unnecessary CMD in Dockerfile
The `CMD [ "/bin/bash/" ]` command in the last line of
`Dockerfile` is unnecessary. This can be changed with
`CMD [ "nvim" ]` for direct nvim start. However, with this setup it may
not be possible to exit and re-enter Neovim without quitting the
container.
2023-02-21 17:09:55 +03:00

36 lines
799 B
Docker

FROM ubuntu:latest
# Install dependencies
RUN apt update && apt install -y \
curl \
wget \
gzip \
unzip \
git \
npm \
python3 \
cargo \
ripgrep \
fd-find
# Installation Settings
# branch can be nightly
ENV BRANCH=nightly
ENV LSP_LIST='lua-language-server'
ENV TS_LIST='c cpp go lua python rust tsx typescript help vim'
# Install NeoVim
RUN wget https://github.com/neovim/neovim/releases/download/${BRANCH}/nvim-linux64.tar.gz
RUN tar xzvf nvim-linux64.tar.gz
ENV PATH="/nvim-linux64/bin:${PATH}"
# Copy files
WORKDIR /root/.config/nvim
RUN mkdir -p /root/.config/nvim
COPY . /root/.config/nvim
# Install nvim plugins and lsp servers
RUN nvim --headless "+Lazy! install" +"MasonInstall ${LSP_LIST}" +qa
RUN nvim --headless +"TSUpdateSync ${TS_LIST}" +qa