-
-
Notifications
You must be signed in to change notification settings - Fork 97
/
Dockerfile
31 lines (21 loc) · 831 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
FROM alpine:3.20 AS builder
RUN apk add --no-cache build-base git ncurses-dev
RUN git clone --branch v9.1.0447 --depth 1 https://github.com/vim/vim.git
RUN cd vim/src \
&& ./configure --enable-multibyte --prefix=/usr --with-features=normal \
&& make install
# Remove the docs.
RUN rm -r /usr/share/vim/vim91/doc
# Quiet warnings about missing ftdetect.
RUN mkdir /usr/share/vim/vim91/ftdetect \
&& touch /usr/share/vim/vim91/ftdetect/vim.vim
FROM codegolf/lang-base
COPY --from=0 /bin /bin
COPY --from=0 /lib/ld-musl-x86_64.so.1 /lib/
COPY --from=0 /usr/lib/libncurses.so \
/usr/lib/libncursesw.so.6 /usr/lib/
COPY --from=0 /usr/share/vim/vim91 /usr/share/vim/vim91
COPY --from=0 /usr/bin/vim /usr/bin/
COPY viml /usr/bin/
ENTRYPOINT ["viml"]
CMD ["--version"]