stillerman commited on
Commit
bc246eb
·
1 Parent(s): 86fd4cd
Files changed (1) hide show
  1. Dockerfile +6 -2
Dockerfile CHANGED
@@ -47,9 +47,13 @@ RUN yarn build
47
  RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
48
  echo "HF_TOKEN=$(cat /run/secrets/HF_TOKEN)" >> .env
49
 
50
- RUN curl https://huggingface.co/api/whoami-v2 -H "Authorization: Bearer ${HF_TOKEN}"
51
 
52
- RUN curl -L https://huggingface.co/HuggingFaceTB/simplewiki-pruned-text-350k/resolve/main/wikihop.db -H "Authorization: Bearer ${HF_TOKEN}" -o wikihop.db
 
 
 
 
53
 
54
  ENV WIKISPEEDIA_DB_PATH=/home/user/app/wikihop.db
55
 
 
47
  RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
48
  echo "HF_TOKEN=$(cat /run/secrets/HF_TOKEN)" >> .env
49
 
50
+ RUN echo $HF_TOKEN
51
 
52
+ RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
53
+ curl https://huggingface.co/api/whoami-v2 -H "Authorization: Bearer $(cat /run/secrets/HF_TOKEN)"
54
+
55
+ RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
56
+ curl -L https://huggingface.co/HuggingFaceTB/simplewiki-pruned-text-350k/resolve/main/wikihop.db -H "Authorization: Bearer $(cat /run/secrets/HF_TOKEN)" -o wikihop.db
57
 
58
  ENV WIKISPEEDIA_DB_PATH=/home/user/app/wikihop.db
59