Added entrypoint that allows config persistence

This commit is contained in:
2025-01-23 09:58:58 +00:00
parent 8434dc148b
commit 0bb4980881
2 changed files with 13 additions and 1 deletions

View File

@@ -1,6 +1,10 @@
FROM docker.io/anatolelucet/neovim:nightly
COPY ./entrypoint.sh /entrypoint.sh
RUN chmod +x /entrypoint.sh
RUN apk add fzf git nodejs python3 py3-pynvim ripgrep zig
RUN mkdir ~/.config/
RUN git clone https://github.com/Cian-H/my_nvim_config.git
RUN mv my_nvim_config ~/.config/nvim
WORKDIR /cwd
CMD ["/entrypoint.sh"]

8
entrypoint.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/usr/bin/env sh
mkdir -p ~/.config/nvim
if [ -z "$(ls -A ~/.config/nvim)" ]; then
cp -r /my_nvim_config/* ~/.config/nvim/
fi
/usr/bin/env nvim