diff --git a/Dockerfile b/Dockerfile index 8b9ab1016..66f2c379d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,6 +11,17 @@ RUN apt-get update && \ dos2unix && \ rm -rf /var/lib/apt/lists/* + +# Install Google Chrome (latest stable version) +RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \ + dpkg -i google-chrome-stable_current_amd64.deb; apt-get -y install -f + +# Install chromedriver (matching installed chrome version) +RUN CHROME_VERSION=$(google-chrome-stable --version | awk '{print $3}' | sed 's/\..*//') && \ + wget https://chromedriver.storage.googleapis.com/${CHROME_VERSION}.0/chromedriver_linux64.zip && \ + unzip chromedriver_linux64.zip -d /usr/local/bin/ && \ + rm chromedriver_linux64.zip + # Install Poetry and dependencies RUN pip install poetry RUN poetry config virtualenvs.create false