윤준석

ADD: Dockerfile for chrome and selenium webdriver

FIX: session.FocusOnFrame error handling
1 +FROM golang:1.17.3
2 +
3 +RUN apt-get -y update
4 +RUN apt-get install -y wget xvfb gnupg
5 +
6 +RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add -
7 +RUN sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google-chrome.list'
8 +RUN apt-get -y update
9 +RUN apt-get install -y google-chrome-stable
10 +
11 +RUN apt-get install -yqq unzip
12 +RUN wget -O /tmp/chromedriver.zip http://chromedriver.storage.googleapis.com/`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`/chromedriver_linux64.zip
13 +RUN unzip /tmp/chromedriver.zip chromedriver -d /usr/local/bin/
14 +
15 +ENV Xvfb :99
16 +ENV DISPLAY=:99