h3110Fr13nd commited on
Commit
a893559
·
1 Parent(s): 840c7c9

hf secrets

Browse files
Files changed (1) hide show
  1. Dockerfile +4 -0
Dockerfile CHANGED
@@ -17,5 +17,9 @@ RUN scrapy crawl pages && \
17
  cd $HOME/app && \
18
  python setup.py
19
  WORKDIR $HOME/app
 
 
 
 
20
  EXPOSE 7860
21
  CMD ["python", "main.py"]
 
17
  cd $HOME/app && \
18
  python setup.py
19
  WORKDIR $HOME/app
20
+ RUN --mount=type=secret,id=HF_EMAIL,mode=0444,required=true \
21
+ cat /run/secrets/HF_EMAIL > $HOME/app/.env
22
+ RUN --mount=type=secret,id=HF_PASS,mode=0444,required=true \
23
+ cat /run/secrets/HF_PASS >> $HOME/app/.env
24
  EXPOSE 7860
25
  CMD ["python", "main.py"]