test: try deps list

This commit is contained in:
Alex Rudenko 2024-06-12 20:28:41 +02:00
parent e36ce8bee1
commit 3d4c6c57ac
2 changed files with 35 additions and 5 deletions

View File

@ -3,15 +3,14 @@ FROM node:20@sha256:cb7cd40ba6483f37f791e1aace576df449fc5f75332c19ff59e2c6064797
# Configure default locale (important for chrome-headless-shell).
ENV LANG en_US.UTF-8
COPY deb_common.deps /tmp/deb_common.deps
# 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 Chrome 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 | gpg --dearmor -o /usr/share/keyrings/googlechrome-linux-keyring.gpg \
&& sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/googlechrome-linux-keyring.gpg] https://dl-ssl.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-khmeros fonts-kacst fonts-freefont-ttf libxss1 dbus dbus-x11 \
&& apt-get satisfy -y "$(cat /tmp/deb_common.deps | tr '\n' ',')" --no-install-recommends \
&& apt-get install -y fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-khmeros fonts-kacst fonts-freefont-ttf dbus dbus-x11 \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/* \
&& groupadd -r pptruser && useradd -rm -g pptruser -G audio,video pptruser

31
docker/deb_common.deps Normal file
View File

@ -0,0 +1,31 @@
ca-certificates
fonts-liberation
libasound2 (>= 1.0.17)
libatk-bridge2.0-0 (>= 2.5.3)
libatk1.0-0 (>= 2.2.0)
libatspi2.0-0 (>= 2.9.90)
libc6 (>= 2.17)
libcairo2 (>= 1.6.0)
libcups2 (>= 1.7.0)
libcurl3-gnutls | libcurl3-nss | libcurl4 | libcurl3
libdbus-1-3 (>= 1.9.14)
libdrm2 (>= 2.4.75)
libexpat1 (>= 2.1~beta3)
libgbm1 (>= 17.1.0~rc2)
libglib2.0-0 (>= 2.39.4)
libgtk-3-0 (>= 3.9.10) | libgtk-4-1
libnspr4 (>= 2:4.9-2~)
libnss3 (>= 2:3.35)
libpango-1.0-0 (>= 1.14.0)
libu2f-udev
libvulkan1
libx11-6 (>= 2:1.4.99.1)
libxcb1 (>= 1.9.2)
libxcomposite1 (>= 1:0.4.4-1)
libxdamage1 (>= 1:1.1)
libxext6
libxfixes3
libxkbcommon0 (>= 0.5.0)
libxrandr2
wget
xdg-utils (>= 1.0.2)