feat(base): move nvim config to /opt/nvim with ssh remote
Build containers / build (push) Successful in 2m12s
Build containers / build (push) Successful in 2m12s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 file changed
+5
-3
@@ -36,14 +36,16 @@ ENV EDITOR=nvim \
|
|||||||
# === setup user ===
|
# === setup user ===
|
||||||
RUN useradd -ms /bin/bash user && \
|
RUN useradd -ms /bin/bash user && \
|
||||||
echo 'user ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/user && \
|
echo 'user ALL=(ALL) NOPASSWD: ALL' > /etc/sudoers.d/user && \
|
||||||
mkdir -p /run/user/1000 && \
|
mkdir -p /run/user/1000 /opt/nvim && \
|
||||||
chown user:user /run/user/1000
|
chown user:user /run/user/1000 /opt/nvim
|
||||||
|
|
||||||
USER user
|
USER user
|
||||||
WORKDIR /home/user
|
WORKDIR /home/user
|
||||||
|
|
||||||
RUN mkdir -p .config .local .cache && \
|
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
|
COPY --chown=user:user ./config/git .config/git/config
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user