1
0
Fork 0

change chromium to google-chrome

This commit is contained in:
Nick Sweeting 2019-03-30 17:40:55 -04:00
parent 307193c3ea
commit 68d1eb0389

View file

@ -1,5 +1,5 @@
# This Dockerfile for ArchiveBox installs the following in a container: # This Dockerfile for ArchiveBox installs the following in a container:
# - curl, wget, python3, youtube-dl, chromium-browser # - curl, wget, python3, youtube-dl, google-chrome-beta
# - ArchiveBox # - ArchiveBox
# Usage: # Usage:
# docker build github.com/pirate/ArchiveBox -t archivebox # docker build github.com/pirate/ArchiveBox -t archivebox
@ -20,7 +20,7 @@ RUN apt-get update \
RUN wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | apt-key add - \ RUN 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' \ && 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 update \
&& apt-get install -y chromium-browser fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont \ && apt-get install -y google-chrome-beta fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst ttf-freefont \
--no-install-recommends \ --no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \ && rm -rf /var/lib/apt/lists/* \
&& rm -rf /src/*.deb && rm -rf /src/*.deb
@ -31,7 +31,7 @@ RUN chmod +x /usr/local/bin/dumb-init
# Uncomment to skip the chromium download when installing puppeteer. If you do, # Uncomment to skip the chromium download when installing puppeteer. If you do,
# you'll need to launch puppeteer with: # you'll need to launch puppeteer with:
# browser.launch({executablePath: 'chromium-browser'}) # browser.launch({executablePath: 'google-chrome-beta'})
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD true
# Install puppeteer so it's available in the container. # Install puppeteer so it's available in the container.
@ -60,7 +60,7 @@ ENV LANG=C.UTF-8 \
LC_ALL=C.UTF-8 \ LC_ALL=C.UTF-8 \
PYTHONIOENCODING=UTF-8 \ PYTHONIOENCODING=UTF-8 \
CHROME_SANDBOX=False \ CHROME_SANDBOX=False \
CHROME_BINARY=chromium-browser \ CHROME_BINARY=google-chrome-beta \
OUTPUT_DIR=/data OUTPUT_DIR=/data
# Run everything from here on out as non-privileged user # Run everything from here on out as non-privileged user