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