diff --git a/Dockerfile b/Dockerfile index 4250ee7..69bf6bf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"] diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..65ecce5 --- /dev/null +++ b/entrypoint.sh @@ -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