From 82783114fb8434340612a1c0db0ad7b88536505d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krist=C3=B3f=20T=C3=B3th?= Date: Thu, 24 May 2018 23:12:14 +0200 Subject: [PATCH] Make user easily configurable from Dockerfile --- Dockerfile | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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"]