2023-07-12 06:03:23 -07:00
|
|
|
ARG NODE_VERSION=18
|
2022-08-31 06:25:52 -07:00
|
|
|
FROM node:${NODE_VERSION}-alpine
|
|
|
|
|
|
|
|
WORKDIR /home/node
|
|
|
|
COPY .npmrc /usr/local/etc/npmrc
|
|
|
|
|
|
|
|
RUN \
|
2023-06-07 04:28:06 -07:00
|
|
|
apk add --update git openssh graphicsmagick tini tzdata ca-certificates libc6-compat && \
|
|
|
|
npm install -g npm@9.5.1 full-icu && \
|
2022-08-31 06:25:52 -07:00
|
|
|
rm -rf /var/cache/apk/* /root/.npm /tmp/* && \
|
|
|
|
# Install fonts
|
|
|
|
apk --no-cache add --virtual fonts msttcorefonts-installer fontconfig && \
|
|
|
|
update-ms-fonts && \
|
|
|
|
fc-cache -f && \
|
|
|
|
apk del fonts && \
|
|
|
|
find /usr/share/fonts/truetype/msttcorefonts/ -type l -exec unlink {} \; && \
|
|
|
|
rm -rf /var/cache/apk/* /tmp/*
|
|
|
|
|
|
|
|
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
|
|
|
|
EXPOSE 5678/tcp
|