fix(docker): change base image to `lua_ls`
The base image is changed from `anatolelucet/neovim` to `ubuntu:latest` to fix the installation issue of `lua_ls`. With this change, manual installation of NeoVim became necessary. It is handled by `tar` binary installation method. Branch name can be changed in the `Dockerfile`. In addition headless commands are fixed to wait for installation of desired LSP list and TS list. Fixes #1pull/186/head
parent
f8bc3a4f06
commit
8059a02b4b
@ -1,27 +1,36 @@
|
|||||||
FROM anatolelucet/neovim:nightly
|
FROM ubuntu:latest
|
||||||
|
|
||||||
WORKDIR /root/.config/nvim
|
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN apk add --update \
|
RUN apt update && apt install -y \
|
||||||
bash \
|
|
||||||
curl \
|
curl \
|
||||||
wget \
|
wget \
|
||||||
gzip \
|
gzip \
|
||||||
unzip \
|
unzip \
|
||||||
git \
|
git \
|
||||||
npm \
|
npm \
|
||||||
alpine-sdk \
|
|
||||||
openssh-client \
|
|
||||||
python3 \
|
python3 \
|
||||||
cargo \
|
cargo \
|
||||||
ripgrep \
|
ripgrep \
|
||||||
fd
|
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
|
# Copy files
|
||||||
|
WORKDIR /root/.config/nvim
|
||||||
RUN mkdir -p /root/.config/nvim
|
RUN mkdir -p /root/.config/nvim
|
||||||
COPY . /root/.config/nvim
|
COPY . /root/.config/nvim
|
||||||
|
|
||||||
# Install nvim plugins and lsp servers
|
# Install nvim plugins and lsp servers
|
||||||
RUN nvim --headless "+Lazy! install" +"MasonInstall pyright" +qa
|
RUN nvim --headless "+Lazy! install" +"MasonInstall ${LSP_LIST}" +qa
|
||||||
|
RUN nvim --headless +"TSUpdateSync ${TS_LIST}" +qa
|
||||||
|
|
||||||
|
CMD [ "/bin/bash" ]
|
||||||
|
Loading…
Reference in New Issue