feat: add bash_profile for creating copilot directory
This commit is contained in:
parent
53cfeb1a62
commit
df8b7b5bfe
@ -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
7
config/user/profile
Normal 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
|
Loading…
Reference in New Issue
Block a user