Dockerfile 673 B

12345678910111213141516171819202122232425262728293031323334
  1. # Build neovim separately in the first stage
  2. FROM alpine:latest AS base
  3. RUN apk --no-cache add \
  4. autoconf \
  5. automake \
  6. build-base \
  7. cmake \
  8. ninja \
  9. coreutils \
  10. curl \
  11. gettext-tiny-dev \
  12. git \
  13. libtool \
  14. pkgconf \
  15. unzip
  16. # Build neovim (and use it as an example codebase
  17. RUN git clone https://github.com/neovim/neovim.git
  18. ARG VERSION=master
  19. RUN cd neovim && git checkout ${VERSION} && make CMAKE_BUILD_TYPE=RelWithDebInfo install
  20. # To support kickstart.nvim
  21. RUN apk --no-cache add \
  22. fd \
  23. ctags \
  24. ripgrep \
  25. git
  26. # Copy the kickstart.nvim init.lua
  27. COPY ./init.lua /root/.config/nvim/init.lua
  28. WORKDIR /neovim