refactor: Some minor refactorings
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,2 +1,2 @@
|
|||||||
.env
|
.env
|
||||||
bot-data/
|
.env.local
|
||||||
|
|||||||
@@ -3,7 +3,9 @@ FROM selenium/standalone-chromium:4.43.0-20260404
|
|||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y python3-pip
|
RUN apt-get update && apt-get install -y python3-pip
|
||||||
RUN pip3 install undetected-chromedriver setuptools --break-system-packages
|
|
||||||
|
COPY requirements.txt /tmp/requirements.txt
|
||||||
|
RUN pip3 install --no-cache-dir -r /tmp/requirements.txt --break-system-packages
|
||||||
|
|
||||||
RUN echo 'from undetected_chromedriver.patcher import Patcher\n\
|
RUN echo 'from undetected_chromedriver.patcher import Patcher\n\
|
||||||
Patcher(executable_path="/usr/bin/chromedriver").patch()\n\
|
Patcher(executable_path="/usr/bin/chromedriver").patch()\n\
|
||||||
|
|||||||
2
selenium-patch/requirements.txt
Normal file
2
selenium-patch/requirements.txt
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
undetected-chromedriver==3.5.5
|
||||||
|
setuptools==82.0.1
|
||||||
Reference in New Issue
Block a user