37 lines
807 B
Docker
37 lines
807 B
Docker
FROM ubuntu:latest
|
|
|
|
# Install build tools and nvim deps
|
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
cmake \
|
|
gettext \
|
|
unzip \
|
|
git \
|
|
build-essential \
|
|
curl \
|
|
nodejs \
|
|
npm \
|
|
fzf \
|
|
golang-go \
|
|
python3 \
|
|
python3-pip \
|
|
python3-venv \
|
|
ripgrep
|
|
|
|
# Clone neovim repo
|
|
RUN git clone --depth 1 --branch v0.10.1 https://github.com/neovim/neovim.git
|
|
# Build neovim
|
|
RUN cd neovim && CMAKE_BUILD_TYPE=Release && make install
|
|
|
|
# Install rust
|
|
RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs -y | sh
|
|
|
|
# Create user
|
|
RUN useradd -m nvim_playground
|
|
USER nvim_playground
|
|
|
|
# Copy config to user folders
|
|
RUN mkdir -p /home/nvim_playground/.config/nvim
|
|
WORKDIR /home/nvim_playground/.config/nvim
|
|
COPY --chown=nvim_playground:nvim_playground . .
|
|
|
|
USER nvim_playground
|