-
Notifications
You must be signed in to change notification settings - Fork 8
/
Dockerfile
79 lines (66 loc) · 1.75 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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
FROM alpine:latest
MAINTAINER Nick Lang <nick@nicklang.com>
RUN apk add --update \
git \
alpine-sdk build-base\
libtool \
automake \
m4 \
autoconf \
linux-headers \
unzip \
ncurses ncurses-dev ncurses-libs ncurses-terminfo \
python \
python-dev \
py-pip \
clang \
go \
nodejs \
xz \
curl \
make \
cmake \
&& rm -rf /var/cache/apk/*
WORKDIR /tmp
ENV CMAKE_EXTRA_FLAGS=-DENABLE_JEMALLOC=OFF
# Required for running this on my archbox
RUN adduser -S nick -u 1000 -G users
RUN adduser -S nicklang -G users
RUN adduser -S ubuntu -G users
RUN git clone https://github.com/neovim/libtermkey.git && \
cd libtermkey && \
make && \
make install && \
cd ../ && rm -rf libtermkey
RUN git clone https://github.com/neovim/libvterm.git && \
cd libvterm && \
make && \
make install && \
cd ../ && rm -rf libvterm
RUN git clone https://github.com/neovim/unibilium.git && \
cd unibilium && \
make && \
make install && \
cd ../ && rm -rf unibilium
RUN git clone https://github.com/neovim/neovim.git && \
cd neovim && \
make && \
make install && \
cd ../ && rm -rf nvim
# Install neovim python support
RUN pip install neovim pep8
RUN chgrp -R users .
COPY install /usr/local/bin/install-neovim
USER nick
# install vim-plug
RUN curl -fLo /home/nick/.config/nvim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
# copy init.vim into container
COPY init.vim /home/nick/.config/nvim/init.vim
COPY pep8 /home/nick/.config/pep8
# install all plugins
RUN nvim +PlugInstall +qa
RUN cd /home/nick/.nvim/plugged/YouCompleteMe && ./install.py --clang-completer --gocode-completer --tern-completer
ENV TERM xterm256-color
WORKDIR /data
COPY neovim /neovim
CMD /usr/local/bin/nvim