summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorTJ DeVries <devries.timothyj@gmail.com>2022-06-23 23:35:53 -0400
committerTJ DeVries <devries.timothyj@gmail.com>2022-06-23 23:35:53 -0400
commit4c4096cf30acace7bf3cf5a0a4b6c5346a0d5a59 (patch)
tree33d743a50b121db548661136533b974b6442d7ef /Dockerfile
init: kickstart.nvim
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile34
1 files changed, 34 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..5c303b4
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,34 @@
+# 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
+
+WORKDIR /neovim