You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
1.1 KiB

  1. FROM ubuntu:20.04
  2. RUN apt-get update && \
  3. apt-get -y dist-upgrade && \
  4. apt-get install -y \
  5. apt-utils \
  6. build-essential \
  7. wget \
  8. curl \
  9. git \
  10. neovim \
  11. vim && \
  12. apt-get clean
  13. RUN curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
  14. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  15. RUN curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
  16. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  17. RUN curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
  18. https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
  19. # install go
  20. RUN wget https://golang.org/dl/go1.16.4.linux-amd64.tar.gz && \
  21. tar -C /usr/local -xzf go1.16.4.linux-amd64.tar.gz
  22. RUN echo "export PATH=$PATH:/usr/local/go/bin" >> ./.bashrc
  23. RUN echo "export GOPATH=$HOME/go" >> ./.bashrc
  24. RUN git clone https://github.com/arnaucube/configs.git && \
  25. cp configs/.vimrc ~/ && \
  26. cp configs/vimconfigbase.vim ~/ && \
  27. mkdir ~/.config && \
  28. mkdir ~/.config/nvim && \
  29. cp configs/init.vim ~/.config/nvim/
  30. WORKDIR /root
  31. ENTRYPOINT /bin/sh