Add fonts to perilous container for favicon rendering
Some checks failed
Deploy Stacks / deploy-prod (push) Failing after 1s
Deploy Stacks / deploy-dev (push) Has been cancelled

Sharp requires fontconfig and fonts to render SVG text elements.
Added ttf-dejavu for the dynamically generated favicon.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 11:41:01 -05:00
parent 6b5fcb2f61
commit 2a1d78fa69

View File

@@ -1,5 +1,5 @@
FROM node:18-alpine FROM node:18-alpine
RUN apk add --no-cache python3 make g++ vips-dev RUN apk add --no-cache python3 make g++ vips-dev fontconfig ttf-dejavu
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY content/package.json ./ COPY content/package.json ./
RUN npm install RUN npm install