mirror of
https://github.com/leoncvlt/loconotion.git
synced 2024-08-30 18:12:12 +00:00
Use specific Chrome version
This commit is contained in:
parent
b8a59cda17
commit
fa45d4e5a6
@ -4,12 +4,12 @@ FROM python:3.8
|
||||
# We need wget to set up the PPA and xvfb to have a virtual screen and unzip to install the Chromedriver
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y libgconf-2-4 wget xvfb unzip
|
||||
# Set up the Chrome PPA
|
||||
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
|
||||
RUN echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list
|
||||
# Update the package list and install chrome
|
||||
RUN apt-get update -y
|
||||
RUN apt-get install -y google-chrome-stable
|
||||
|
||||
# Install Chrome (compatible version with chromedriver below)
|
||||
ARG CHROME_VERSION="87.0.4280.141-1"
|
||||
RUN wget --no-verbose -O /tmp/chrome.deb https://dl.google.com/linux/chrome/deb/pool/main/g/google-chrome-stable/google-chrome-stable_${CHROME_VERSION}_amd64.deb \
|
||||
&& apt install -y /tmp/chrome.deb \
|
||||
&& rm /tmp/chrome.deb
|
||||
|
||||
# RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
# RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
|
||||
|
Loading…
Reference in New Issue
Block a user