Fixed the chrome missing in deps
This commit is contained in:
parent
d84e659b36
commit
b6319fbc8a
12
Dockerfile
12
Dockerfile
@ -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 /
|
||||||
|
|
||||||
|
@ -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 /
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user