Skip to content

Commit

Permalink
Merge pull request #29 from depot/reorder-lfs
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobwgillespie authored Nov 23, 2023
2 parents ff25746 + bb93db4 commit 00281a2
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions models/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,15 @@ RUN apt-get update \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*

ENV GIT_LFS_SKIP_SMUDGE=1
RUN --mount=type=ssh \
set -x && \
mkdir -p ~/.ssh && \
ssh-keyscan hf.co >> ~/.ssh/known_hosts && \
env GIT_LFS_SKIP_SMUDGE=1 git clone [email protected]:${MODEL} /model && \
git clone [email protected]:${MODEL} /model && \
cd /model && \
git lfs pull && \
git reset --hard ${SHA} && \
git lfs pull && \
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 00281a2

Please sign in to comment.