-
-
Notifications
You must be signed in to change notification settings - Fork 78
/
Dockerfile
21 lines (16 loc) · 916 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
ARG NEOVIM_RELEASE=${NEOVIM_RELEASE:-https://github.com/neovim/neovim/releases/download/nightly/nvim-linux64.tar.gz}
FROM ubuntu
ARG NEOVIM_RELEASE
RUN apt-get update
RUN apt-get -y install git curl tar gcc g++
RUN mkdir /neovim
RUN curl -sL ${NEOVIM_RELEASE} | tar xzf - --strip-components=1 -C "/neovim"
RUN git clone --depth 1 https://github.com/nvim-lua/plenary.nvim
RUN git clone --depth 1 https://github.com/tjdevries/tree-sitter-lua
WORKDIR tree-sitter-lua
RUN mkdir -p build parser; \
cc -o ./build/parser.so -I ./src src/parser.c src/scanner.c -shared -Os -lstdc++ -fPIC; \
ln -s ../build/parser.so parser/lua.so;
RUN mkdir /notify
WORKDIR /notify
ENTRYPOINT ["bash", "-c", "PATH=/neovim/bin:${PATH} VIM=/neovim/share/nvim/runtime nvim --headless -c 'set rtp+=. | set rtp+=../plenary.nvim/ | set rtp+=../tree-sitter-lua/ | runtime! plugin/plenary.vim | luafile ./scripts/gendocs.lua' -c 'qa'"]