h3110Fr13nd commited on
Commit
1bb9119
1 Parent(s): 7a89c8b

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -22,5 +22,10 @@ RUN scrapy crawl pages && \
22
  python setup.py
23
  WORKDIR $HOME/app
24
 
 
 
 
 
 
25
  EXPOSE 7860
26
  CMD ["python", "main.py"]
 
22
  python setup.py
23
  WORKDIR $HOME/app
24
 
25
+ RUN --mount=type=secret,id=HF_EMAIL,mode=0444,required=true \
26
+ cat /run/secrets/HF_EMAIL
27
+ RUN --mount=type=secret,id=HF_PASS,mode=0444,required=true \
28
+ cat /run/secrets/HF_PASS
29
+
30
  EXPOSE 7860
31
  CMD ["python", "main.py"]