-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
43 lines (37 loc) · 814 Bytes
/
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
FROM alpine:latest AS builder
ARG VERSION=release-0.10
RUN apk --no-cache add \
autoconf \
automake \
build-base \
cmake \
ninja \
coreutils \
wget \
gettext-tiny-dev \
git \
libtool \
pkgconf \
unzip && \
git clone https://github.com/neovim/neovim.git
RUN cd neovim && git checkout ${VERSION} && \
make CMAKE_BUILD_TYPE=RelWithDebInfo CMAKE_INSTALL_PREFIX=/nvim-build install
FROM alpine:latest AS base
RUN apk --no-cache add fzf \
libgcc \
git \
build-base \
nodejs \
npm \
ripgrep \
tree-sitter \
tree-sitter-cli \
wget \
make \
cmake \
fd \
&& mkdir -p /root/.config/nvim
COPY --from=builder /nvim-build /usr/local
COPY init.lua /root/.config/nvim/
COPY lua /root/.config/nvim/lua
WORKDIR /root/