[core] Install fonts separately

This commit is contained in:
allburov committed 2023-02-27 18:51:50 +07:00
1 parent 32d583b9ef
commit 013fd46722
1 file changed
+6 -1
+6 -1
View File
@@ -20,6 +20,11 @@ RUN npm run build && find ./dist -name "*.d.ts" -delete
#
FROM node:18 as release
ENV PUPPETEER_SKIP_DOWNLOAD=True
# Install fonts
RUN apt-get update \
&& apt-get install -y fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*
# Install Chrome
RUN apt-get update \
@@ -27,7 +32,7 @@ RUN apt-get update \
&& 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' \
&& apt-get update \
&& apt-get install -y google-chrome-stable fonts-ipafont-gothic fonts-wqy-zenhei fonts-thai-tlwg fonts-kacst fonts-freefont-ttf \
&& apt-get install -y google-chrome-stable \
--no-install-recommends \
&& rm -rf /var/lib/apt/lists/*