Skip to content

Commit

Permalink
edgedriver by selenium webdriver-manager
Browse files Browse the repository at this point in the history
  • Loading branch information
sMeilbeck committed Sep 20, 2024
1 parent 87e16d8 commit c908716
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,14 @@ RUN curl -q https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor >
RUN add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/edge stable main"
RUN apt-get update && apt-get install -qq -y microsoft-edge-stable

# Install msedgedriver
RUN wget -q -O /tmp/msedgedriver.zip https://msedgedriver.azureedge.net/LATEST_STABLE/msedgedriver-linux64.zip
RUN unzip /tmp/msedgedriver.zip -d /usr/local/bin/
RUN chmod +x /usr/local/bin/msedgedriver
# Install npm packages for Selenium and EdgeDriver
WORKDIR /usr/src/app/backend
COPY ./backend/package*.json ./
RUN npm install --ignore-scripts
RUN npm install -g selenium-webdriver webdriver-manager

# Update WebDriver Manager for Edge
RUN webdriver-manager update --edge


# Clean up the cache after installing all necessary packages
Expand Down

0 comments on commit c908716

Please sign in to comment.