File size: 926 Bytes
1281a0c
15d5fb0
ae01e9d
 
 
 
 
 
 
 
 
 
 
 
 
 
a62d987
15d5fb0
a62d987
 
 
15d5fb0
dcd88f3
8fb943d
8e9ee7d
8579734
 
 
 
 
 
e03ec2f
15d5fb0
 
8318ccf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM python:3.9

RUN useradd -m -u 1000 user

USER user

ENV HOME=/home/user \
	PATH=/home/user/.local/bin:$PATH

WORKDIR $HOME/app

RUN pip install --no-cache-dir --upgrade pip

RUN mkdir -p /data
RUN chmod 777 /data

WORKDIR /code

COPY ./requirements.txt /code/requirements.txt

RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt

RUN mkdir downloaded_files && chmod 777 downloaded_files
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

# RUN apt-get update
# RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
# RUN wget https://storage.googleapis.com/chrome-for-testing-public/124.0.6367.91/linux64/chromedriver-linux64.zip
# RUN apt install -y ./google-chrome-stable_current_amd64.deb

RUN seleniumbase get chromedriver

COPY . .

CMD ["python", "app/main.py"]