h3110Fr13nd commited on
Commit
60e5026
1 Parent(s): 67e94fc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -5
Dockerfile CHANGED
@@ -2,7 +2,11 @@ FROM python
2
  COPY requirements.txt /app/requirements.txt
3
  WORKDIR /app
4
  RUN pip install -r requirements.txt
5
- RUN playwright install-deps
 
 
 
 
6
  RUN useradd -m -u 1000 user
7
  USER user
8
  ENV HOME=/home/user \
@@ -17,9 +21,6 @@ RUN scrapy crawl pages && \
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"]
 
2
  COPY requirements.txt /app/requirements.txt
3
  WORKDIR /app
4
  RUN pip install -r requirements.txt
5
+ RUN playwright install-deps
6
+ RUN --mount=type=secret,id=HF_EMAIL,mode=0444,required=true \
7
+ cat /run/secrets/HF_EMAIL > $HOME/app/.env
8
+ RUN --mount=type=secret,id=HF_PASS,mode=0444,required=true \
9
+ cat /run/secrets/HF_PASS >> $HOME/app/.env
10
  RUN useradd -m -u 1000 user
11
  USER user
12
  ENV HOME=/home/user \
 
21
  cd $HOME/app && \
22
  python setup.py
23
  WORKDIR $HOME/app
24
+
 
 
 
25
  EXPOSE 7860
26
  CMD ["python", "main.py"]