-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
39 lines (22 loc) · 875 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM python:3.10-slim AS base
# Install vim
WORKDIR /app
RUN apt update && apt install -y libncurses-dev libpython3-dev git build-essential cmake tmux
RUN git clone https://github.com/vim/vim
WORKDIR /app/vim/src
COPY Makefile Makefile
RUN make reconfig && make install
RUN git clone https://github.com/VundleVim/Vundle.vim.git /root/.vim/bundle/Vundle.vim
COPY .vimrc /root/.vimrc
RUN vim +PluginInstall +qall
WORKDIR /root/.vim/bundle/YouCompleteMe
RUN python3 install.py --clang-completer --force-sudo --verbose
RUN cp /root/.vim/bundle/YouCompleteMe/third_party/ycmd/.ycm_extra_conf.py ~/.vim/
# Copy other rc files
COPY .bashrc /root/.bashrc
COPY .tmux.conf /root/.tmux.conf
# Install nodejs
WORKDIR /root
RUN apt install -y curl
RUN curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.0/install.sh | bash
RUN bash -i -c "nvm install v22.12.0"