Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to Chrome to avoid 429s #29

Merged
merged 2 commits into from
May 25, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,23 @@ ENV PYTHONUNBUFFERED 1
# install apt dependencies
RUN apt-get update -y
RUN DEBIAN_FRONTEND=noninteractive \
apt-get install -y unzip wget chromium=90.0.4430.212-1~deb10u1 \
apt-get install -y unzip wget curl \
xorg vnc4server autocutsel lxde-core novnc python-websockify \
libffi-dev musl-dev libssl-dev python3-dev gcc \
python3 python3-pip \
chromium-driver=90.0.4430.212-1~deb10u1 \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*


RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list && \
apt-get update -y && \
apt-get install -y google-chrome-stable && \
CHROMEVER=$(google-chrome --product-version | grep -o "[^\.]*\.[^\.]*\.[^\.]*") && \
DRIVERVER=$(curl -s "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROMEVER") && \
wget -q --continue -P /chromedriver "http://chromedriver.storage.googleapis.com/$DRIVERVER/chromedriver_linux64.zip" && \
unzip /chromedriver/chromedriver* -d /usr/local/bin && \
rm -r -f /chromedirver/

WORKDIR /app

# Copy project files in directory
Expand Down