Revert to newer chromedriver version and update chromium source to apt

This commit is contained in:
Keannu Bernasol 2024-08-30 17:32:40 +08:00
parent 5cdd41313e
commit a5dbf09040

View file

@ -17,11 +17,10 @@ RUN pip3 install --upgrade pip
RUN pip3 install --no-cache-dir -r requirements.txt RUN pip3 install --no-cache-dir -r requirements.txt
# Install Chrome # Install Chrome
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb RUN apt install chromium-browser
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb
# Install Chromedriver # Install Chromedriver
ENV CHROMEDRIVER_VERSION=114.0.5735.90 ENV CHROMEDRIVER_VERSION=124.0.6367.155
RUN wget https://storage.googleapis.com/chrome-for-testing-public/$CHROMEDRIVER_VERSION/linux64/chromedriver-linux64.zip \ RUN wget https://storage.googleapis.com/chrome-for-testing-public/$CHROMEDRIVER_VERSION/linux64/chromedriver-linux64.zip \
&& unzip chromedriver-linux64.zip && rm -dfr chromedriver_linux64.zip \ && unzip chromedriver-linux64.zip && rm -dfr chromedriver_linux64.zip \
&& mv chromedriver-linux64/chromedriver /usr/bin/chromedriver \ && mv chromedriver-linux64/chromedriver /usr/bin/chromedriver \