1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-12-23 15:51:32 +01:00

Docker: improvements

This commit is contained in:
bretello 2022-02-07 21:10:44 +01:00
parent 21c3f4ac51
commit 8689c25815
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -17,6 +17,9 @@ RUN pacman --noconfirm -Syu && pacman --noconfirm -Sy \
bash-language-server \
&& rm -rf /var/cache/pacman/pkg/*
# Enable colors in pacman
RUN sed -i 's/^#Color/Color/' /etc/pacman.conf
FROM base as yay_builder
# prepare nobody makepkg user
@ -58,7 +61,9 @@ RUN curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
COPY . /root/.dotfiles
RUN git clone https://git.decapod.one/brethil/dotfiles ${DOTFILES}
COPY . ${DOTFILES}
WORKDIR /root/
@ -68,9 +73,9 @@ RUN ln -s $DOTFILES/tmux.conf .tmux.conf
RUN echo -e "[include]\npath = $DOTFILES/gitconfig" >> .gitconfig
# Install vim plugins
RUN vim -c 'PlugInstall|qa!' &>/dev/null || echo "installed vim plugins"
RUN vim -c 'PlugInstall|qa!'
# Install zsh plugins
RUN antibody update
RUN zsh -il -c exit
CMD tmux