From 2bcdbc20468dcfe73e0b96bbedcc6af3045ec5ce Mon Sep 17 00:00:00 2001 From: Michael Grote Date: Tue, 30 Jul 2024 20:25:30 +0200 Subject: [PATCH] add userswitch for adding motd --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index 1ce003e..41b9ede 100644 --- a/Dockerfile +++ b/Dockerfile @@ -70,6 +70,7 @@ RUN git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.v && vim +PluginInstall +qall # setup motd +USER root # hadolint ignore=DL3001,DL4006,SC2086 RUN vim --version | head -1 > /etc/motd \ && ansible --version | head -1 >> /etc/motd \ @@ -79,5 +80,6 @@ RUN vim --version | head -1 > /etc/motd \ && echo $CI_REPO_URL >> /etc/motd \ && echo "" >> /etc/motd \ && echo "ansible-devspace" | figlet -l -w 100 | /usr/games/lolcat >> /etc/motd +USER ansible-dev ENTRYPOINT ["/home/ansible-dev/start_tmux.sh"]