forked from mjlbach/starter.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
57 lines (46 loc) · 1.18 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# Build neovim separately in the first stage
FROM alpine:latest AS base
RUN apk --no-cache add \
autoconf \
automake \
build-base \
cmake \
ninja \
coreutils \
curl \
gettext-tiny-dev \
git \
libtool \
pkgconf \
unzip
# Build neovim (and use it as an example codebase
RUN git clone https://github.com/neovim/neovim.git
ARG VERSION=master
RUN cd neovim && git checkout ${VERSION} && make CMAKE_BUILD_TYPE=RelWithDebInfo install
# To support kickstart.nvim
RUN apk --no-cache add \
fd \
ctags \
ripgrep \
git
# Copy the kickstart.nvim init.lua
COPY ./init.lua /root/.config/nvim/init.lua
# Install lua-language-server
RUN apk --no-cache add \
git \
build-base \
ninja \
bash
RUN mkdir -p /root/.local && \
cd /root/.local && \
git clone --recursive https://github.com/sumneko/lua-language-server && \
cd lua-language-server/3rd/luamake && \
./compile/install.sh && \
cd ../.. && \
./3rd/luamake/luamake rebuild
ENV ENV="/root/.ashrc"
RUN echo "export PATH=$PATH:/root/.local/lua-language-server/bin" >> "$ENV"
# Add clangd extras
RUN apk --no-cache add \
clang-extra-tools
WORKDIR /neovim