Spaces:
Runtime error
Runtime error
use /run/secrets
Browse files- Dockerfile +2 -1
Dockerfile
CHANGED
|
@@ -11,5 +11,6 @@ RUN mkdir $HOME/.cache
|
|
| 11 |
RUN chown -R user $HOME/.cache
|
| 12 |
|
| 13 |
RUN pip install -r requirements.txt
|
| 14 |
-
RUN HF_TOKEN
|
|
|
|
| 15 |
ENTRYPOINT ["streamlit", "run", "demo.py"]
|
|
|
|
| 11 |
RUN chown -R user $HOME/.cache
|
| 12 |
|
| 13 |
RUN pip install -r requirements.txt
|
| 14 |
+
RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=true \
|
| 15 |
+
HF_TOKEN=$(cat /run/secrets/HF_TOKEN) python yolo_fire.py
|
| 16 |
ENTRYPOINT ["streamlit", "run", "demo.py"]
|