Skip to content

Commit

Permalink
Merge pull request #28 from depot/git-memory
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Nov 23, 2023
2 parents 84a2188 + b5cfbe2 commit ff25746
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion models/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ RUN apt-get update \
RUN --mount=type=ssh \
mkdir -p ~/.ssh && \
ssh-keyscan hf.co >> ~/.ssh/known_hosts && \
git clone [email protected]:${MODEL} /model && \
env GIT_LFS_SKIP_SMUDGE=1 git clone [email protected]:${MODEL} /model && \
cd /model && \
git lfs pull && \
git reset --hard ${SHA} && \
rm -rf .git .gitattributes && \
find . -newermt "@${SOURCE_DATE_EPOCH}" -writable -xdev | xargs touch --date="@${SOURCE_DATE_EPOCH}" --no-dereference
Expand Down

0 comments on commit ff25746

Please sign in to comment.