diff --git a/containers/base/Containerfile b/containers/base/Containerfile index d1e3aaf..44510e9 100644 --- a/containers/base/Containerfile +++ b/containers/base/Containerfile @@ -36,14 +36,16 @@ ENV EDITOR=nvim \ # === setup user === RUN useradd -ms /bin/bash user && \ echo 'user ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/user && \ - mkdir -p /run/user/1000 && \ - chown user:user /run/user/1000 + mkdir -p /run/user/1000 /opt/nvim && \ + chown user:user /run/user/1000 /opt/nvim USER user WORKDIR /home/user RUN mkdir -p .config .local .cache && \ - git clone https://git.plabble.org/Job79/neovim-config.git .config/nvim + git clone https://git.plabble.org/Job79/neovim-config.git /opt/nvim && \ + git -C /opt/nvim remote set-url origin ssh://git@git.plabble.org:2222/Job79/neovim-config.git && \ + ln -s /opt/nvim .config/nvim COPY --chown=user:user ./config/git .config/git/config