2025-01-13 07:51:06 +00:00
|
|
|
FROM hardcoreeng/base
|
|
|
|
|
2025-01-21 07:04:55 +00:00
|
|
|
# Chromium hangs when usging LD_PRELOAD and MALLOC_CONF
|
|
|
|
ENV LD_PRELOAD=
|
|
|
|
ENV MALLOC_CONF=
|
|
|
|
|
2025-01-13 07:51:06 +00:00
|
|
|
# We don't need the standalone Chromium
|
|
|
|
ENV PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true
|
|
|
|
# Set executable path for puppeteer
|
|
|
|
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium
|
|
|
|
|
|
|
|
# Install Chromium and fonts
|
|
|
|
# https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md?plain=1#L397
|
|
|
|
RUN apt-get update --fix-missing
|
|
|
|
RUN apt-get install -y gnupg wget libxss1
|
|
|
|
RUN apt-get install -y fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf
|
|
|
|
RUN apt-get install -y chromium-common/stable --no-install-recommends
|
|
|
|
RUN apt-get install -y chromium/stable --no-install-recommends
|
|
|
|
RUN apt-get clean
|