diff --git a/Containerfile b/Containerfile index 7ae0083..a0f532b 100644 --- a/Containerfile +++ b/Containerfile @@ -10,6 +10,7 @@ RUN useradd -ms /bin/bash user && usermod -aG wheel user && sed -i '/NOPASSWD/s/ USER user WORKDIR /home/user COPY config/user/bashrc /home/user/.bashrc +COPY config/user/profile /home/user/.bash_profile # === setup neovim === RUN git clone --depth 1 https://github.com/LazyVim/starter ~/.config/nvim @@ -19,5 +20,5 @@ COPY config/nvim/lazyvim.json /home/user/.config/nvim/lazyvim.json # === setup container === ENV TZ="Europe/Amsterdam" -VOLUME /home/user/.local /home/user/.cache /home/user/.config/github-copilot -CMD ["bash"] +VOLUME /home/user/.local /home/user/.cache +CMD ["bash", "-l"] diff --git a/config/user/profile b/config/user/profile new file mode 100644 index 0000000..683af33 --- /dev/null +++ b/config/user/profile @@ -0,0 +1,7 @@ +. ~/.bashrc + +# === persist copilot auth files inside .local volume === +if [ ! -d ~/.config/github-copilot ]; then + mkdir -p ~/.local/share/github-copilot + ln -s ~/.local/share/github-copilot ~/.config +fi