Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 32 additions & 3 deletions images/chromium-headful/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -204,13 +204,42 @@ RUN --mount=type=cache,target=/var/cache/apt,sharing=locked,id=$CACHEIDPREFIX-ap
wget \
xdg-utils \
libvulkan1 \
fontconfig \
unzip && \
apt-get clean && rm -rf /var/lib/apt/lists/*

# Install fonts to match a realistic Ubuntu 22.04 desktop fingerprint.
# A minimal container has only 3 fonts, which is a strong fingerprinting signal
# used by reCAPTCHA Enterprise and other bot detection vendors.
RUN apt-get update && \
apt-get --no-install-recommends -y install \
fonts-liberation \
fonts-liberation2 \
fonts-noto-cjk \
fonts-noto-color-emoji \
fonts-noto-core \
fonts-nanum \
fontconfig \
unzip && \
fc-cache -f
fonts-dejavu-core \
fonts-dejavu-extra \
fonts-freefont-ttf \
fonts-ubuntu \
fonts-opensymbol \
fonts-roboto \
fonts-croscore \
fonts-smc-chilanka \
fonts-hosny-amiri \
fonts-indic \
fonts-kacst \
fonts-khmeros-core \
fonts-lao \
fonts-lklug-sinhala \
fonts-sil-abyssinica \
fonts-sil-padauk \
fonts-thai-tlwg \
fonts-tibetan-machine \
fonts-droid-fallback && \
fc-cache -f && \
apt-get clean && rm -rf /var/lib/apt/lists/*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

how much does this add to image size?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

~140 MB


# install ffmpeg manually since the version available in apt is from the 4.x branch due to #drama.
COPY --from=ffmpeg-downloader /usr/local/bin/ffmpeg /usr/local/bin/ffmpeg
Expand Down
Loading