From b0cdbb70a684cea62a9c3c2847b3ff874a4b5d2c Mon Sep 17 00:00:00 2001 From: Andrew Davidson Date: Wed, 5 Jun 2019 15:27:37 -0400 Subject: [PATCH] run as root, prevents privilege issues when editing files in other containers --- Dockerfile | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index f56c36d..ab8fa15 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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