matdmiller commited on
Commit
7f5e62c
·
verified ·
1 Parent(s): c2f77dd

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -28,8 +28,10 @@ ENTRYPOINT ["/bin/sh", "-c"]
28
  # RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
29
  # curl test -H 'Authorization: Bearer $(cat /run/secrets/HF_TOKEN)'
30
 
 
 
31
  RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
32
- python3 -c "from huggingface_hub import snapshot_download; import os; with open('/run/secrets/HF_TOKEN', 'r') as f: token = f.read().strip(); snapshot_download(repo_id='LocalResearchGroup/smollm2-135m-20250224_023514', local_dir='.', allow_patterns='.aim/**', token=token)"
33
 
34
  # have to run `aim init` in the directory that stores aim data for
35
  # otherwise `aim up` will prompt for confirmation to create the directory itself.
 
28
  # RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
29
  # curl test -H 'Authorization: Bearer $(cat /run/secrets/HF_TOKEN)'
30
 
31
+ COPY download_aim.py .
32
+
33
  RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
34
+ python3 download_aim.py
35
 
36
  # have to run `aim init` in the directory that stores aim data for
37
  # otherwise `aim up` will prompt for confirmation to create the directory itself.