Spaces:
Sleeping
Sleeping
h3110Fr13nd
commited on
Commit
•
eab0075
1
Parent(s):
1bb9119
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
@@ -23,9 +23,11 @@ RUN scrapy crawl pages && \
|
|
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"]
|
|
|
23 |
WORKDIR $HOME/app
|
24 |
|
25 |
RUN --mount=type=secret,id=HF_EMAIL,mode=0444,required=true \
|
26 |
+
cat /run/secrets/HF_EMAIL > $HOME/app/.env \
|
27 |
+
cat $HOME/app/.env
|
28 |
RUN --mount=type=secret,id=HF_PASS,mode=0444,required=true \
|
29 |
+
cat /run/secrets/HF_PASS >> $HOME/app/.env \
|
30 |
+
$HOME/app/.env
|
31 |
|
32 |
EXPOSE 7860
|
33 |
CMD ["python", "main.py"]
|