diff --git a/Dockerfile b/Dockerfile index 4e27f88..1aa639c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,12 @@ RUN npm ci --omit=dev COPY . . +RUN if [ -d fonts ] && ls fonts/*.{ttf,otf,ttc} 2>/dev/null | grep -q .; then \ + mkdir -p /usr/local/share/fonts/custom && \ + cp fonts/*.ttf fonts/*.otf fonts/*.ttc /usr/local/share/fonts/custom/ 2>/dev/null || true && \ + fc-cache -f; \ + fi + ENV NODE_ENV=production ENV PORT=3000 ENV TEMPLATE_DIR=/app/templates