mirror of
https://github.com/Cian-H/my_nvim.git
synced 2025-12-22 16:21:56 +00:00
Added entrypoint that allows config persistence
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
FROM docker.io/anatolelucet/neovim:nightly
|
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 apk add fzf git nodejs python3 py3-pynvim ripgrep zig
|
||||||
RUN mkdir ~/.config/
|
RUN mkdir ~/.config/
|
||||||
RUN git clone https://github.com/Cian-H/my_nvim_config.git
|
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
8
entrypoint.sh
Normal 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
|
||||||
Reference in New Issue
Block a user