Skip to content
This repository has been archived by the owner on Apr 11, 2022. It is now read-only.

Commit

Permalink
Add chrome dependencies
Browse files Browse the repository at this point in the history
* Add chrome to image

Add necessary libs for chrome to get a minimal docker + puppetter working

* Move layer up
  • Loading branch information
azlam-abdulsalam authored Oct 16, 2021
1 parent 18b5a8b commit b6ef9d8
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ RUN apt-get update -qq && \
rm -rf /var/lib/apt/lists/*


# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
# installs, work.
RUN apt-get update \
&& apt-get install -y wget gnupg \
&& 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-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf libxss1 \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*


ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/
Expand Down Expand Up @@ -60,3 +71,7 @@ RUN echo 'y' | sfdx plugins:install sfdmu@4.4.3
RUN echo 'y' | sfdx plugins:install sfpowerkit@3.3.2
RUN echo 'y' | sfdx plugins:install @dxatscale/sfpowerscripts@8.5.2
RUN echo 'y' | sfdx plugins:install sfdx-browserforce-plugin@2.6.3




0 comments on commit b6ef9d8

Please sign in to comment.