Feat: Set WORKDIR to /workspace/axolotl (#679)
Browse files- docker/Dockerfile +5 -4
docker/Dockerfile
CHANGED
@@ -12,17 +12,18 @@ RUN apt-get update && \
|
|
12 |
WORKDIR /workspace
|
13 |
|
14 |
RUN git clone --depth=1 https://github.com/OpenAccess-AI-Collective/axolotl.git
|
|
|
|
|
|
|
15 |
# If AXOLOTL_EXTRAS is set, append it in brackets
|
16 |
-
RUN
|
17 |
-
if [ "$AXOLOTL_EXTRAS" != "" ] ; then \
|
18 |
pip install -e .[flash-attn,$AXOLOTL_EXTRAS]; \
|
19 |
else \
|
20 |
pip install -e .[flash-attn]; \
|
21 |
fi
|
22 |
|
23 |
# fix so that git fetch/pull from remote works
|
24 |
-
RUN
|
25 |
-
git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && \
|
26 |
git config --get remote.origin.fetch
|
27 |
|
28 |
# helper for huggingface-login cli
|
|
|
12 |
WORKDIR /workspace
|
13 |
|
14 |
RUN git clone --depth=1 https://github.com/OpenAccess-AI-Collective/axolotl.git
|
15 |
+
|
16 |
+
WORKDIR /workspace/axolotl
|
17 |
+
|
18 |
# If AXOLOTL_EXTRAS is set, append it in brackets
|
19 |
+
RUN if [ "$AXOLOTL_EXTRAS" != "" ] ; then \
|
|
|
20 |
pip install -e .[flash-attn,$AXOLOTL_EXTRAS]; \
|
21 |
else \
|
22 |
pip install -e .[flash-attn]; \
|
23 |
fi
|
24 |
|
25 |
# fix so that git fetch/pull from remote works
|
26 |
+
RUN git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && \
|
|
|
27 |
git config --get remote.origin.fetch
|
28 |
|
29 |
# helper for huggingface-login cli
|