File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -28,12 +28,12 @@ RUN apt-get -y update && \
2828 apache2-utils \
2929 apt-file \
3030 apt-utils \
31- chromium-driver \
3231 curl \
3332 enscript \
3433 gcc \
3534 ghostscript \
3635 git \
36+ gnupg \
3737 graphviz \
3838 libmagic-dev \
3939 libmariadb-dev \
@@ -47,13 +47,25 @@ RUN apt-get -y update && \
4747 rsyslog \
4848 unzip \
4949 yang-tools && \
50+ # Since snap doesn't work in Docker containers, install chromedriver per
51+ # https://gist.github.com/varyonic/dea40abcf3dd891d204ef235c6e8dd79#gistcomment-3160722
52+ curl https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - && \
53+ echo "deb http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list && \
54+ apt-get update -y && \
55+ apt-get install -y --no-install-recommends google-chrome-stable && \
56+ CHROMEVER=$(google-chrome --product-version | grep -o "[^\. ]*\. [^\. ]*\. [^\. ]*" ) && \
57+ DRIVERVER=$(curl "https://chromedriver.storage.googleapis.com/LATEST_RELEASE_$CHROMEVER" ) && \
58+ curl -L -O -C - "http://chromedriver.storage.googleapis.com/$DRIVERVER/chromedriver_linux64.zip" && \
59+ unzip chromedriver_linux64.zip -d /bin && \
60+ rm chromedriver_linux64.zip && \
5061 # Install some other packages that are not dependencies but make life easier
5162 apt-get -y install --no-install-recommends \
5263 fish \
5364 less \
5465 nano \
5566 ripgrep \
5667 zsh && \
68+ # Reduce image footprint (not that it matters given the size of the above)
5769 apt-get -y clean && \
5870 rm -rf /var/lib/apt/lists/*
5971
You can’t perform that action at this time.
0 commit comments