Redo Dockerfile to build nvim from source
This commit is contained in:
parent
18cccb3aa5
commit
80fb26baf4
4 changed files with 54 additions and 10 deletions
31
Dockerfile
31
Dockerfile
|
@ -1,12 +1,13 @@
|
|||
FROM ubuntu:latest
|
||||
|
||||
LABEL maintainer="pro100ton@gmail.com"
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
# Install build tools and nvim deps
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
cmake \
|
||||
gettext \
|
||||
unzip \
|
||||
git \
|
||||
build-essential \
|
||||
curl \
|
||||
neovim \
|
||||
git \
|
||||
nodejs \
|
||||
npm \
|
||||
fzf \
|
||||
|
@ -14,13 +15,23 @@ RUN apt-get update && apt-get install -y \
|
|||
python3 \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
unzip \
|
||||
ripgrep
|
||||
RUN useradd -m nvim_playground
|
||||
|
||||
# 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
|
||||
|
||||
RUN mkdir /home/nvim_playground/.config
|
||||
RUN mkdir /home/nvim_playground/.config/nvim
|
||||
# Copy config to user folders
|
||||
RUN mkdir -p /home/nvim_playground/.config/nvim
|
||||
WORKDIR /home/nvim_playground/.config/nvim
|
||||
COPY . .
|
||||
COPY --chown=nvim_playground:nvim_playground . .
|
||||
|
||||
USER nvim_playground
|
||||
|
|
26
Dockerfile_old
Normal file
26
Dockerfile_old
Normal file
|
@ -0,0 +1,26 @@
|
|||
FROM ubuntu:latest
|
||||
|
||||
LABEL maintainer="pro100ton@gmail.com"
|
||||
|
||||
RUN apt-get update && apt-get install -y \
|
||||
build-essential \
|
||||
curl \
|
||||
neovim \
|
||||
git \
|
||||
nodejs \
|
||||
npm \
|
||||
fzf \
|
||||
golang-go \
|
||||
python3 \
|
||||
python3-pip \
|
||||
python3-venv \
|
||||
unzip \
|
||||
ripgrep
|
||||
RUN useradd -m nvim_playground
|
||||
|
||||
USER nvim_playground
|
||||
|
||||
RUN mkdir /home/nvim_playground/.config
|
||||
RUN mkdir /home/nvim_playground/.config/nvim
|
||||
WORKDIR /home/nvim_playground/.config/nvim
|
||||
COPY . .
|
|
@ -35,10 +35,14 @@ return {
|
|||
|
||||
mason_tool_installer.setup({
|
||||
ensure_installed = {
|
||||
"rust-analyzer",
|
||||
"golines",
|
||||
"goimports-reviser",
|
||||
"prettier", -- prettier formatter
|
||||
"stylua", -- lua formatter
|
||||
"isort", -- python formatter
|
||||
"black", -- python formatter
|
||||
"gofumpt",
|
||||
"pylint",
|
||||
"flake8",
|
||||
-- Astra settings for 3.7 Python
|
||||
|
|
3
lua/t0xa/plugins/rust-tools.lua
Normal file
3
lua/t0xa/plugins/rust-tools.lua
Normal file
|
@ -0,0 +1,3 @@
|
|||
return {
|
||||
"simrat39/rust-tools.nvim",
|
||||
}
|
Loading…
Reference in a new issue