aboutsummaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorMitermayer Reis <mitermayer.reis@gmail.com>2020-02-05 11:08:03 +1100
committerGitHub <noreply@github.com>2020-02-05 11:08:03 +1100
commit49d91743b2df43f84edd199f877d494b4d8812f4 (patch)
treecf856d77c9960a09eb3156937aa1b896b855bed6 /Dockerfile
parent9eb448e45ef88e90681335fda32bcae52a09d6dc (diff)
parentb064c6ab82a3c57ea64360d762d661ad7e8ee54c (diff)
downloadvim-prettier-49d91743b2df43f84edd199f877d494b4d8812f4.tar.xz
Merge pull request #175 from prettier/release/1.x
Release/1.x
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile59
1 files changed, 59 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..dbe3402
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,59 @@
+FROM alpine:3.8 as builder
+
+WORKDIR /tmp
+
+RUN apk add --no-cache \
+ build-base \
+ ctags \
+ git \
+ libx11-dev \
+ libxpm-dev \
+ libxt-dev \
+ libxtst-dev \
+ make \
+ ncurses-dev \
+ python3 \
+ python3-dev \
+ perl-dev \
+ ruby-dev
+
+RUN git clone https://github.com/vim/vim && cd vim \
+ && ./configure \
+ --with-features=huge \
+ --with-x \
+ --with-compiledby=mitermayer.reis@gmail.com \
+ && make install
+
+FROM testbed/vim:latest
+
+COPY --from=builder /usr/local/bin /usr/local/bin
+COPY --from=builder /usr/local/share/vim /usr/local/share/vim
+
+# install pip
+ENV PACKAGES="\
+ bash \
+ git \
+ python \
+ py-pip \
+ nodejs \
+ npm \
+ libxt \
+ libx11 \
+"
+
+RUN apk --update add $PACKAGES && \
+ rm -rf /var/cache/apk/* /tmp/* /var/tmp/*
+
+# install supported vim8 and neovim
+RUN install_vim -tag v7.4.052 -name vim7 -build \
+ -tag v8.1.0519 -name vim8 -build \
+ -tag neovim:v0.3.5 -name neovim -build
+
+# upgrade node and yarn
+RUN npm install -g npm yarn
+
+# copy vimrc
+ADD tests/vimrc /root/.vimrc
+
+# install vint
+RUN pip install typing>=4.6.2 pathlib==1.0.1 enum34>=1.0.4 vim-vint==0.3.19