Spaces:
Running
Running
h3110Fr13nd
commited on
Commit
·
30122c4
1
Parent(s):
2345efb
Permission issues in hf spaces
Browse files- Dockerfile +11 -4
Dockerfile
CHANGED
@@ -4,11 +4,18 @@ WORKDIR /app
|
|
4 |
RUN pip install -r requirements.txt
|
5 |
RUN playwright install-deps && \
|
6 |
playwright install
|
7 |
-
|
8 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
RUN scrapy crawl pages && \
|
10 |
-
cd /app && \
|
11 |
python setup.py
|
12 |
-
WORKDIR /app
|
13 |
EXPOSE 7860
|
14 |
CMD ["python", "main.py"]
|
|
|
4 |
RUN pip install -r requirements.txt
|
5 |
RUN playwright install-deps && \
|
6 |
playwright install
|
7 |
+
RUN useradd -m -u 1000 user
|
8 |
+
USER user
|
9 |
+
ENV HOME=/home/user \
|
10 |
+
PATH=/home/user/.local/bin:$PATH
|
11 |
+
|
12 |
+
WORKDIR $HOME/app
|
13 |
+
|
14 |
+
COPY --chown=user . $HOME/app
|
15 |
+
WORKDIR $HOME/app/pragetx_scraper
|
16 |
RUN scrapy crawl pages && \
|
17 |
+
cd $HOME/app && \
|
18 |
python setup.py
|
19 |
+
WORKDIR $HOME/app
|
20 |
EXPOSE 7860
|
21 |
CMD ["python", "main.py"]
|