run as root, prevents privilege issues when editing files in other containers

This commit is contained in:
Andrew Davidson 2019-06-05 15:27:37 -04:00
parent f948029b97
commit b0cdbb70a6
Signed by: amd
GPG key ID: 17AF8F2A49CF25C6

View file

@ -2,16 +2,11 @@ FROM fedora:rawhide
RUN dnf install -y zsh git vim tmux stow && dnf clean all
RUN mkdir /tmp/home && \
useradd amdavidson -s /usr/bin/zsh -m -k /tmp/home && \
rm -r /tmp/home
WORKDIR /root
USER amdavidson
WORKDIR /home/amdavidson
RUN git clone https://github.com/amdavidson/dotfiles.git /home/amdavidson/.dotfiles && \
cd /home/amdavidson/.dotfiles && \
stow -t /home/amdavidson zsh git vim tmux
RUN git clone https://github.com/amdavidson/dotfiles.git /root/.dotfiles && \
cd /root/.dotfiles && \
stow -t /root zsh git vim tmux
RUN vim +"PlugInstall --sync" +qa