2023-12-13 12:12:28 +07:00
|
|
|
FROM --platform=linux/arm64 node:alpine
|
|
|
|
LABEL maintainer="sombochea@cubetiqs.com"
|
|
|
|
|
2023-12-13 12:50:36 +07:00
|
|
|
RUN apk add --no-cache chromium nss freetype harfbuzz ca-certificates ttf-freefont
|
2023-12-13 12:45:14 +07:00
|
|
|
|
|
|
|
ENV PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium-browser
|
|
|
|
ENV NODE_ENV production
|
2023-12-13 12:12:28 +07:00
|
|
|
ENV ACCEPT_HIGHCHARTS_LICENSE="YES"
|
2023-12-13 12:45:14 +07:00
|
|
|
|
2023-12-13 19:23:22 +07:00
|
|
|
RUN npm i -g @cubetiq/highcharts-export-server@latest
|
2023-12-13 12:12:28 +07:00
|
|
|
|
|
|
|
WORKDIR /usr/share/fonts/truetype
|
|
|
|
ADD fonts/* ./
|
2023-12-13 12:45:14 +07:00
|
|
|
RUN fc-cache -fv
|
2023-12-13 12:12:28 +07:00
|
|
|
|
|
|
|
WORKDIR /
|
2023-12-13 19:23:22 +07:00
|
|
|
ADD entrypoint.sh /entrypoint.sh
|
2023-12-13 12:12:28 +07:00
|
|
|
|
2023-12-13 19:23:22 +07:00
|
|
|
EXPOSE ${PORT:-8080}
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|