diff --git a/Dockerfile b/Dockerfile index 0ba2b44..3ae83a3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,7 @@ FROM debian:unstable +USER root + RUN export DEBIAN_FRONTEND=noninteractive &&\ apt-get update &&\ apt-get install -y locales @@ -23,16 +25,15 @@ RUN export DEBIAN_FRONTEND=noninteractive &&\ COPY . / -RUN cd /root &&\ - git clone https://git.strongds.hu/mrtoth/zshrc.git &&\ - echo "/root/.oh-my-zsh" > zshrc/oh-my-zsh_path &&\ +RUN git clone https://git.strongds.hu/mrtoth/zshrc.git ~/zshrc &&\ + echo "${HOME}/.oh-my-zsh" > ~/zshrc/oh-my-zsh_path &&\ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" &&\ - ln -sf /root/zshrc/rc /root/.zshrc &&\ + ln -sf ~/zshrc/rc ~/.zshrc &&\ git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \ ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting &&\ chsh -s /bin/zsh -RUN git clone --depth 1 https://github.com/junegunn/fzf.git /root/.fzf &&\ - /root/.fzf/install +RUN git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf &&\ + ~/.fzf/install CMD ["/bin/zsh"]