Dockerfile 953 B

12345678910111213141516171819202122232425
  1. FROM ubuntu:latest
  2. ARG NEOVIM_RELEASE=v0.5.0
  3. ARG LVBRANCH=rolling
  4. ENV DEBIAN_FRONTEND=noninteractive
  5. # Install apt dependencies
  6. RUN apt update && \
  7. apt -y install sudo curl build-essential git fzf python3-dev python3-pip cargo && \
  8. curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
  9. apt update && \
  10. apt -y install nodejs && \
  11. curl -L -o /tmp/nvim.appimage https://github.com/neovim/neovim/releases/download/${NEOVIM_RELEASE}/nvim.appimage && \
  12. chmod u+x /tmp/nvim.appimage && \
  13. /tmp/nvim.appimage --appimage-extract && \
  14. mv squashfs-root /usr/local/neovim && \
  15. ln -s /usr/local/neovim/usr/bin/nvim /usr/bin/nvim && \
  16. apt clean && rm -rf /var/lib/apt/lists/* /tmp/* && \
  17. LVBRANCH=${LVBRANCH} curl -s https://raw.githubusercontent.com/lunarvim/lunarvim/rolling/utils/installer/install.sh | bash -s -- -y
  18. ENV PATH="/root/.local/bin:/root/.cargo/bin:/root/.npm-global/bin${PATH}"
  19. ENTRYPOINT ["/bin/bash"]
  20. CMD ["lvim"]