This commit is contained in:
2024-04-19 15:56:24 +03:00
commit a0d7c982d0
3 changed files with 25 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
out/

18
Dockerfile Normal file
View File

@ -0,0 +1,18 @@
FROM rockylinux:9.3
ARG VERSION="v0.9.4"
ARG NVIM="/nvim-linux64/bin/nvim"
RUN yum install -y wget git
# downlad neovim binary
RUN wget "https://github.com/neovim/neovim/releases/download/${VERSION}/nvim-linux64.tar.gz"
RUN tar -xvf nvim-linux64.tar.gz
# clone and install dotfiles
RUN git clone https://git.kehilush.com/omri/dots
RUN mkdir -p ~/.config && cp -r dots/.config/nvim ~/.config
RUN $NVIM --headless -c 'Lazy sync' +q
ENTRYPOINT cp -r /nvim-linux64 /out

6
README.md Normal file
View File

@ -0,0 +1,6 @@
# Running
```bash
docker build . -t offline_nvim:latest
docker run -v out:/out offline_nvim:latest
```