From 1d72c81d15e74adcb82852f58b9556038b957bdb Mon Sep 17 00:00:00 2001 From: NanoCode012 Date: Fri, 6 Oct 2023 04:09:14 +0900 Subject: [PATCH] Feat: Set WORKDIR to /workspace/axolotl (#679) --- docker/Dockerfile | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 8608e2348b..7b121aaa7b 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,17 +12,18 @@ RUN apt-get update && \ WORKDIR /workspace RUN git clone --depth=1 https://github.com/OpenAccess-AI-Collective/axolotl.git + +WORKDIR /workspace/axolotl + # If AXOLOTL_EXTRAS is set, append it in brackets -RUN cd axolotl && \ - if [ "$AXOLOTL_EXTRAS" != "" ] ; then \ +RUN if [ "$AXOLOTL_EXTRAS" != "" ] ; then \ pip install -e .[flash-attn,$AXOLOTL_EXTRAS]; \ else \ pip install -e .[flash-attn]; \ fi # fix so that git fetch/pull from remote works -RUN cd axolotl && \ - git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && \ +RUN git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && \ git config --get remote.origin.fetch # helper for huggingface-login cli