Spaces:
Runtime error
Runtime error
Commit
•
864a891
1
Parent(s):
ae01e9d
Update Dockerfile
Browse files- Dockerfile +2 -29
Dockerfile
CHANGED
@@ -1,35 +1,8 @@
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
-
RUN
|
4 |
-
|
5 |
-
USER user
|
6 |
-
|
7 |
-
ENV HOME=/home/user \
|
8 |
-
PATH=/home/user/.local/bin:$PATH
|
9 |
-
|
10 |
-
WORKDIR $HOME/app
|
11 |
-
|
12 |
-
RUN pip install --no-cache-dir --upgrade pip
|
13 |
-
|
14 |
-
RUN mkdir -p /data
|
15 |
-
RUN chmod 777 /data
|
16 |
-
|
17 |
-
WORKDIR /code
|
18 |
-
|
19 |
-
COPY ./requirements.txt /code/requirements.txt
|
20 |
-
|
21 |
-
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
22 |
-
|
23 |
-
RUN mkdir downloaded_files && chmod 777 downloaded_files
|
24 |
-
RUN mkdir /usr/local/lib/python3.9/site-packages/seleniumbase/drivers/uc_driver chmod 777 /usr/local/lib/python3.9/site-packages/seleniumbase/drivers/uc_driver
|
25 |
-
|
26 |
-
# RUN apt-get update
|
27 |
-
# RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
28 |
-
# RUN wget https://storage.googleapis.com/chrome-for-testing-public/124.0.6367.91/linux64/chromedriver-linux64.zip
|
29 |
-
# RUN apt install -y ./google-chrome-stable_current_amd64.deb
|
30 |
|
|
|
31 |
RUN seleniumbase get chromedriver
|
32 |
|
33 |
-
COPY . .
|
34 |
-
|
35 |
CMD ["python", "app/main.py"]
|
|
|
1 |
FROM python:3.9
|
2 |
|
3 |
+
RUN chmod 777 /app
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
+
RUN pip install chromedriver
|
6 |
RUN seleniumbase get chromedriver
|
7 |
|
|
|
|
|
8 |
CMD ["python", "app/main.py"]
|