Fixed the chrome missing in deps

This commit is contained in:
Sambo Chea 2023-12-13 12:45:14 +07:00
parent d84e659b36
commit b6319fbc8a
Signed by: sombochea
GPG Key ID: 3C7CF22A05D95490
2 changed files with 24 additions and 0 deletions

View File

@ -1,11 +1,23 @@
FROM node:alpine FROM node:alpine
LABEL maintainer="sombochea@cubetiqs.com" LABEL maintainer="sombochea@cubetiqs.com"
RUN apk add --no-cache \
chromium \
nss \
freetype \
harfbuzz \
ca-certificates \
ttf-freefont
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
ENV NODE_ENV production
ENV ACCEPT_HIGHCHARTS_LICENSE="YES" ENV ACCEPT_HIGHCHARTS_LICENSE="YES"
RUN npm i -g highcharts-export-server@latest RUN npm i -g highcharts-export-server@latest
WORKDIR /usr/share/fonts/truetype WORKDIR /usr/share/fonts/truetype
ADD fonts/* ./ ADD fonts/* ./
RUN fc-cache -fv
WORKDIR / WORKDIR /

View File

@ -1,11 +1,23 @@
FROM --platform=linux/arm64 node:alpine FROM --platform=linux/arm64 node:alpine
LABEL maintainer="sombochea@cubetiqs.com" LABEL maintainer="sombochea@cubetiqs.com"
RUN apk add --no-cache \
chromium \
nss \
freetype \
harfbuzz \
ca-certificates \
ttf-freefont
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
ENV NODE_ENV production
ENV ACCEPT_HIGHCHARTS_LICENSE="YES" ENV ACCEPT_HIGHCHARTS_LICENSE="YES"
RUN npm i -g highcharts-export-server@latest RUN npm i -g highcharts-export-server@latest
WORKDIR /usr/share/fonts/truetype WORKDIR /usr/share/fonts/truetype
ADD fonts/* ./ ADD fonts/* ./
RUN fc-cache -fv
WORKDIR / WORKDIR /