Skip to content

Commit

Permalink
test-5
Browse files Browse the repository at this point in the history
  • Loading branch information
krrish-sehgal committed Dec 23, 2024
1 parent ef11373 commit b3268c5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,9 @@ RUN apt-get update && \
rm -rf /var/lib/apt/lists/*


# Add Google Chrome repository and install Chrome
RUN curl -sSL https://dl-ssl.google.com/linux/linux_signing_key.pub | tee /etc/apt/trusted.gpg.d/google.asc
RUN DISTRO=$(lsb_release -c | awk '{print $2}') && \
echo "deb [signed-by=/etc/apt/trusted.gpg.d/google.asc] http://dl.google.com/linux/chrome/deb/ $DISTRO main" | tee /etc/apt/sources.list.d/google-chrome.list && \
apt-get update && \
apt-get install -y google-chrome-stable
# Install Google Chrome by downloading the .deb file
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
RUN apt-get install -y ./google-chrome-stable_current_amd64.deb

# Install chromedriver (matching installed chrome version)
RUN CHROME_VERSION=$(google-chrome-stable --version | awk '{print $3}' | sed 's/\..*//') && \
Expand Down

0 comments on commit b3268c5

Please sign in to comment.