run as root, prevents privilege issues when editing files in other containers
This commit is contained in:
parent
f948029b97
commit
b0cdbb70a6
1 changed files with 4 additions and 9 deletions
13
Dockerfile
13
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
|
||||
|
||||
|
|
Loading…
Reference in a new issue