mirror of
https://github.com/danbee/chess
synced 2025-03-04 08:39:06 +00:00
Install ChromeDriver
This commit is contained in:
parent
6cecc3005c
commit
e4fc3a1b6f
13
Dockerfile
13
Dockerfile
@ -8,8 +8,17 @@ WORKDIR /app
|
||||
RUN apt-get update
|
||||
|
||||
# Install Chrome
|
||||
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
||||
RUN apt-get -y install ./google-chrome-stable_current_amd64.deb
|
||||
RUN wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb && \
|
||||
apt-get -y install ./google-chrome-stable_current_amd64.deb
|
||||
|
||||
# Install ChromeDriver
|
||||
RUN CHROMEDRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE` && \
|
||||
mkdir -p /opt/chromedriver-$CHROMEDRIVER_VERSION && \
|
||||
curl -sS -o /tmp/chromedriver_linux64.zip http://chromedriver.storage.googleapis.com/$CHROMEDRIVER_VERSION/chromedriver_linux64.zip && \
|
||||
unzip -qq /tmp/chromedriver_linux64.zip -d /opt/chromedriver-$CHROMEDRIVER_VERSION && \
|
||||
rm /tmp/chromedriver_linux64.zip && \
|
||||
chmod +x /opt/chromedriver-$CHROMEDRIVER_VERSION/chromedriver && \
|
||||
ln -fs /opt/chromedriver-$CHROMEDRIVER_VERSION/chromedriver /usr/local/bin/chromedriver
|
||||
|
||||
# Install Rebar and Hex
|
||||
RUN mix local.rebar --force && mix local.hex --force
|
||||
|
||||
Loading…
Reference in New Issue
Block a user