mirror of
https://github.com/R0m1k3/Socialflow.git
synced 2026-10-11 17:26:45 +02:00
Improve text rendering by ensuring necessary fonts are available
Add bzip2 to Dockerfile and improve font download/extraction logic for DejaVu Sans font. Replit-Commit-Author: Agent Replit-Commit-Session-Id: ae4037a0-2a6f-4530-9bac-79b543286bda Replit-Commit-Checkpoint-Type: full_checkpoint Replit-Commit-Event-Id: 445992ab-e326-4930-8de8-096036c3cb7e Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/397bca8c-984f-43ff-841a-10897aeb8140/ae4037a0-2a6f-4530-9bac-79b543286bda/EMt8Koz
This commit is contained in:
1 parent
82c1ee5bc5
commit
6ee2b61dd9
2 files changed
+10
-4
No files matched your search
+9
-3
@@ -23,7 +23,8 @@ RUN apk add --no-cache \
|
||||
ttf-dejavu \
|
||||
fontconfig \
|
||||
curl \
|
||||
tar
|
||||
tar \
|
||||
bzip2
|
||||
|
||||
# Copier les fichiers de configuration
|
||||
COPY package*.json ./
|
||||
@@ -37,10 +38,15 @@ COPY . .
|
||||
# Télécharger et installer la police DejaVu Sans pour le rendu de texte
|
||||
RUN mkdir -p server/fonts && \
|
||||
cd server/fonts && \
|
||||
curl -L -o dejavu.tar.bz2 "https://sourceforge.net/projects/dejavu/files/dejavu/2.37/dejavu-fonts-ttf-2.37.tar.bz2/download" && \
|
||||
echo "Téléchargement de la police DejaVu Sans..." && \
|
||||
curl -L -f --retry 3 --retry-delay 2 -o dejavu.tar.bz2 "https://sourceforge.net/projects/dejavu/files/dejavu/2.37/dejavu-fonts-ttf-2.37.tar.bz2/download" && \
|
||||
echo "Extraction de l'archive..." && \
|
||||
tar -xjf dejavu.tar.bz2 && \
|
||||
echo "Installation de la police..." && \
|
||||
cp dejavu-fonts-ttf-2.37/ttf/DejaVuSans.ttf . && \
|
||||
rm -rf dejavu.tar.bz2 dejavu-fonts-ttf-2.37
|
||||
ls -lh DejaVuSans.ttf && \
|
||||
rm -rf dejavu.tar.bz2 dejavu-fonts-ttf-2.37 && \
|
||||
echo "✓ Police DejaVu Sans installée avec succès"
|
||||
|
||||
# Augmenter la mémoire pour le build (résout les problèmes de mémoire avec Vite)
|
||||
ENV NODE_OPTIONS="--max-old-space-size=4096"
|
||||
|
||||
Reference in new issue
Block a user