Skip to content

Commit

Permalink
Add correct Chrome install for puppeteer
Browse files Browse the repository at this point in the history
  • Loading branch information
robmadole committed Jan 22, 2018
1 parent 9d3fab1 commit b72a81d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,16 @@ RUN chmod a+x /bin/wait-for-it.sh
# install Hex
RUN mix local.hex --force
RUN mix hex.info

# install headless Chrome compatible with puppeteer
RUN apt-get update && apt-get install -yq libgconf-2-4
RUN apt-get update && apt-get install -y wget --no-install-recommends \
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \
&& sh -c 'echo "deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
&& apt-get update \
&& apt-get install -y google-chrome-unstable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& apt-get purge --auto-remove -y curl \
&& rm -rf /src/*.deb

0 comments on commit b72a81d

Please sign in to comment.