19 lines
764 B
Docker
19 lines
764 B
Docker
FROM vecps:base-v0.1.2
|
|
|
|
LABEL maintainer="Tosone <i@tosone.cn>"
|
|
|
|
ARG VIM_VERSION=9.1.1550
|
|
|
|
RUN apk add --no-cache ncurses-static ncurses-dev
|
|
|
|
RUN wget https://github.com/vim/vim/archive/v${VIM_VERSION}.tar.gz && \
|
|
tar xvfz v${VIM_VERSION}.tar.gz && \
|
|
rm v${VIM_VERSION}.tar.gz
|
|
|
|
RUN cd vim-${VIM_VERSION} && \
|
|
LDFLAGS="-static" ./configure --prefix=/app/vim --enable-channel --enable-terminal --disable-gpm --disable-gtktest --disable-gui --disable-netbeans --disable-nls --disable-selinux --disable-smack --disable-sysmouse --disable-xsmp --enable-multibyte --with-features=huge --without-x --with-tlib=ncursesw --with-compiledby="Tosone <i@tosone.cn>" && \
|
|
make -j4 && \
|
|
mkdir -p /app/vim && \
|
|
make install && \
|
|
strip /app/vim/bin/vim
|