-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathDockerfile
31 lines (22 loc) · 925 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 debian:sid-20211220
# Set image locale.
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV TZ=Aisa/Singapore
RUN apt-get update && apt-get -y install curl fzf ripgrep tree git xclip python3 python3-venv python3-pip nodejs npm tzdata ninja-build gettext libtool libtool-bin autoconf automake cmake g++ pkg-config zip unzip sqlite3 libsqlite3-dev
# Create a Python virtual environment
RUN python3 -m venv /venv
# Activate the virtual environment
ENV PATH="/venv/bin:$PATH"
# Cooperate Neovim with Python 3.
RUN pip3 install pynvim
# Cooperate NodeJS with Neovim.
RUN npm i -g neovim
# Install Neovim from source.
RUN mkdir -p /root/TMP
RUN cd /root/TMP && git clone https://github.com/neovim/neovim
RUN cd /root/TMP/neovim && git checkout stable && make -j4 && make install
COPY ./ /root/.config/nvim/
# Install Neovim extensions.
RUN nvim --headless "+Lazy! restore" +qa || exit 0
RUN touch /root/.NERDTreeBookmarks