Dockerfile.remote 1022 B

123456789101112131415161718192021222324252627
  1. # To run this file execute:
  2. # docker build -f Dockerfile.remote . -t Lunarvim:remote
  3. FROM ubuntu:latest
  4. # Build argument to point to correct branch on GitHub
  5. ARG LV_BRANCH=rolling
  6. # Set environment correctly
  7. ENV DEBIAN_FRONTEND=noninteractive
  8. ENV PATH="/root/.local/bin:/root/.cargo/bin:/root/.npm-global/bin${PATH}"
  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. curl -LSs https://raw.githubusercontent.com/lunarvim/lunarvim/${LV_BRANCH}/utils/installer/install-neovim-from-release | bash && \
  17. LV_BRANCH=${LV_BRANCH} curl -LSs https://raw.githubusercontent.com/lunarvim/lunarvim/${LV_BRANCH}/utils/installer/install.sh | bash -s -- --no-install-dependencies
  18. # Setup LVIM to run on startup
  19. ENTRYPOINT ["/bin/bash"]
  20. CMD ["lvim"]
  21. # vim: ft=dockerfile: