Dockerfile.local 868 B

123456789101112131415161718192021222324252627
  1. # To run this file execute:
  2. # docker build -f <Path to this file> <Path to Lunarvim basedir> -t Lunarvim:local
  3. FROM ubuntu:latest
  4. # Set environment correctly
  5. ENV DEBIAN_FRONTEND=noninteractive
  6. ENV PATH="/root/.local/bin:/root/.cargo/bin:/root/.npm-global/bin${PATH}"
  7. # Copy in local directory
  8. COPY --chown=root:root . /LunarVim
  9. # Install dependencies and LunarVim
  10. RUN apt update && \
  11. apt -y install sudo curl build-essential git fzf python3-dev python3-pip cargo && \
  12. curl -fsSL https://deb.nodesource.com/setup_16.x | bash - && \
  13. apt update && \
  14. apt -y install nodejs && \
  15. apt clean && rm -rf /var/lib/apt/lists/* /tmp/* && \
  16. /LunarVim/utils/installer/install-neovim-from-release && \
  17. /LunarVim/utils/installer/install.sh --local --no-install-dependencies
  18. # Setup LVIM to run on startup
  19. ENTRYPOINT ["/bin/bash"]
  20. CMD ["lvim"]
  21. # vim: ft=dockerfile: