-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
59 lines (49 loc) · 1.04 KB
/
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
FROM alpine:3.8 as builder
WORKDIR /tmp
RUN apk add --no-cache \
build-base \
ctags \
git \
libx11-dev \
libxpm-dev \
libxt-dev \
make \
ncurses-dev \
python3 \
python3-dev \
perl-dev \
ruby-dev
RUN git clone https://github.com/vim/vim && cd vim \
&& ./configure \
--disable-gui \
--disable-netbeans \
--enable-multibyte \
--enable-perlinterp \
--enable-rubyinterp \
--enable-python3interp \
--with-features=huge \
--with-python3-config-dir=/usr/lib/python3.6/config-3.6m-x86_64-linux-gnu/ \
&& make install
FROM alpine:3.8
COPY --from=builder /usr/local/bin /usr/local/bin
COPY --from=builder /usr/local/share/vim /usr/local/share/vim
RUN apk add --update --no-cache \
libice \
libsm \
libx11 \
libxt \
ncurses \
python3 \
ruby \
perl \
php7
RUN apk add --update --no-cache \
git \
bash \
fish \
ctags \
fzf \
the_silver_searcher
RUN git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && ~/.fzf/install
ENTRYPOINT ["vim"]