-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
36 lines (30 loc) · 1.2 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
FROM ubuntu:bionic AS builder
MAINTAINER kongroo <[email protected]>
WORKDIR /root
ENV DEBIAN_FRONTEND noninteractive
RUN apt update && apt install -y --no-install-recommends --no-install-suggests \
ca-certificates \
vim \
git \
curl \
build-essential \
cmake \
python3-dev
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.8/install.sh | bash \
&& export NVM_DIR="$HOME/.nvm" \
&& [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \
&& nvm install --lts \
&& git clone --depth=1 https://github.com/Valloric/YouCompleteMe /root/.vim/plugged/YouCompleteMe \
&& npm install -g typescript \
&& cd /root/.vim/plugged/YouCompleteMe \
&& git submodule update --init --recursive
Run export NVM_DIR="$HOME/.nvm" && [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" \
&& cd /root/.vim/plugged/YouCompleteMe \
&& python3 install.py --clang-completer --js-completer \
&& rm -rf ./.git \
&& rm -rf ./third_party/ycmd/clang_archives \
# && rm -rf ./third_party/ycmd/cpp/BoostParts \
&& rm -rf ./third_party/ycmd/third_party/OmniSharpServer
FROM ubuntu:bionic
WORKDIR /root
COPY --from=builder /root/.vim /root/.vim