From 1ac51f5d8ded05060d0ca75c70435ec3b16256c0 Mon Sep 17 00:00:00 2001 From: Alicia Sykes Date: Thu, 17 Nov 2022 12:58:32 +0000 Subject: [PATCH] Fixes paths in Dockerfile --- Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e76a060..10d367d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,18 +50,18 @@ RUN \ COPY ./ /home/${user}/.userspace/ +ENV DOTFILES_DIR="/home/${user}/.dotfiles" + RUN \ - git clone --recursive https://${vcsprovider}/${vcsowner}/${dotfiles} /home/${user}/.dotfiles && \ + git clone --recursive https://${vcsprovider}/${vcsowner}/${dotfiles} ${DOTFILES_DIR} && \ chown -R ${user}:${group} /home/${user}/.dotfiles && \ chown -R ${user}:${group} /home/${user}/.userspace -ENV DOTFILES_DIR="$HOME/.dotfiles" - -RUN chmod u+x /home/${user}/.dotfiles/install.sh +RUN chmod u+x "${DOTFILES_DIR}/install.sh" USER ${user} -RUN cd $HOME/.dotfiles && ./install.sh --auto-yes +RUN cd $DOTFILES_DIR && $DOTFILES_DIR/install.sh --auto-yes ENV HISTFILE=/home/${user}/.cache/.zsh_history