Skip to content

Commit

Permalink
Merge pull request axolotl-ai-cloud#283 from OpenAccess-AI-Collective…
Browse files Browse the repository at this point in the history
…/docker-git-fetch

git fetch fix for docker
  • Loading branch information
winglian committed Jul 17, 2023
2 parents 0caa19f + 0da72e7 commit db467a9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,9 @@ RUN cd axolotl && \
pip install -e .; \
fi

# fix so that git fetch/pull from remote works
RUN git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*" && \
git config --get remote.origin.fetch

# helper for huggingface-login cli
RUN git config --global credential.helper store
4 changes: 4 additions & 0 deletions docker/Dockerfile-runpod
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
ARG BASE_TAG=main
FROM winglian/axolotl:$BASE_TAG

ENV HF_DATASETS_CACHE="/workspace/data/huggingface-cache/datasets"
ENV HUGGINGFACE_HUB_CACHE="/workspace/data/huggingface-cache/hub"
ENV TRANSFORMERS_CACHE="/workspace/data/huggingface-cache/hub"

COPY scripts/runpod-entrypoint.sh /root/runpod-entrypoint.sh

RUN apt install --yes --no-install-recommends openssh-server tmux && \
Expand Down

0 comments on commit db467a9

Please sign in to comment.