feat: add bash_profile for creating copilot directory

This commit is contained in:
Job 2024-09-29 16:48:19 +02:00
parent 53cfeb1a62
commit df8b7b5bfe
Signed by: Job79
SSH Key Fingerprint: SHA256:BezbKv3jZaqu7SdNrZM0e42b8nlNwh63zaVj/pUxc7U
2 changed files with 10 additions and 2 deletions

View File

@ -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"]

7
config/user/profile Normal file
View File

@ -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