Skip to content

Commit f5fdc37

Browse files
authored
update dockerfile with node:18 base from pptr repo (#23)
1 parent 2e3ad61 commit f5fdc37

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

Dockerfile

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,16 @@
1-
FROM node:10.16.3
1+
FROM node:18
22

3-
RUN apt-get update && \
4-
apt-get -y install xvfb gconf-service libasound2 libatk1.0-0 libc6 libcairo2 libcups2 \
5-
libdbus-1-3 libexpat1 libfontconfig1 libgcc1 libgconf-2-4 libgdk-pixbuf2.0-0 libglib2.0-0 \
6-
libgtk-3-0 libnspr4 libpango-1.0-0 libpangocairo-1.0-0 libstdc++6 libx11-6 libx11-xcb1 libxcb1 \
7-
libxcomposite1 libxcursor1 libxdamage1 libxext6 libxfixes3 libxi6 libxrandr2 libxrender1 libxss1 \
8-
libxtst6 ca-certificates fonts-liberation libappindicator1 libnss3 lsb-release xdg-utils wget && \
9-
rm -rf /var/lib/apt/lists/*
3+
# Install latest chrome dev package and fonts to support major charsets (Chinese, Japanese, Arabic, Hebrew, Thai and a few others)
4+
# Note: this installs the necessary libs to make the bundled version of Chromium that Puppeteer
5+
# installs, work.
6+
RUN apt-get update \
7+
&& apt-get install -y wget gnupg \
8+
&& wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | gpg --dearmor -o /usr/share/keyrings/googlechrome-linux-keyring.gpg \
9+
&& sh -c 'echo "deb [arch=amd64 signed-by=/usr/share/keyrings/googlechrome-linux-keyring.gpg] http://dl.google.com/linux/chrome/deb/ stable main" >> /etc/apt/sources.list.d/google.list' \
10+
&& apt-get update \
11+
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-khmeros fonts-kacst fonts-freefont-ttf libxss1 \
12+
--no-install-recommends \
13+
&& rm -rf /var/lib/apt/lists/*
1014

1115
RUN mkdir -p /app
1216
COPY . /app/

0 commit comments

Comments
 (0)