forked from satyrius/vim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
45 lines (34 loc) · 840 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
40
41
42
43
44
45
FROM alpine:latest
MAINTAINER SAbramov <[email protected]>
# Install dependencies
RUN apk add --no-cache \
build-base \
ctags \
git \
libx11-dev \
libxpm-dev \
libxt-dev \
make \
ncurses-dev \
python \
python-dev \
vim \
bash \
ack \
py-pip \
diffutils \
gnupg
COPY ./autoload/ /root/.vim/autoload/
COPY ./bundle/ /root/.vim/bundle/
COPY ./vimrc.d/ /root/.vim/vimrc.d/
COPY ./vimrc /root/.vim/
COPY ./Makefile /root/.vim/
RUN ln -sf /root/.vim/vimrc /root/.vimrc
# install fzf
RUN git clone --depth 1 --quiet https://github.com/junegunn/fzf.git /root/.vim/.fzf && /root/.vim/.fzf/install
RUN export FZF_DEFAULT_COMMAND="git ls-tree -r --name-only HEAD"
# finish install fzf
RUN pip install jedi
RUN pip install flake8
RUN cd /root/.vim && make
ENTRYPOINT ["vim"]