fix(docker): remove libharfbuzz-subset0 incompatible with debian bookworm

This commit is contained in:
Flatlogic Bot 2026-01-31 03:58:38 +00:00
parent 72aff798e2
commit 7c8d1751b7

View File

@ -8,10 +8,8 @@ ENV PYTHONUNBUFFERED=1
WORKDIR /app
# Install system dependencies
# WeasyPrint needs: libpango-1.0-0 libpangoft2-1.0-0 libharfbuzz-subset0 libjpeg-dev libopenjp2-7-dev libxcb1
# PyMySQL does not need libmysqlclient-dev, but we keep basic build tools
# Added libgobject-2.0-0, libcairo2, libgdk-pixbuf2.0-0, shared-mime-info for full WeasyPrint support
# Added libffi-dev, libssl-dev for general python compatibility
# WeasyPrint needs: libpango-1.0-0 libpangoft2-1.0-0 libjpeg-dev libopenjp2-7-dev libxcb1
# Removed libharfbuzz-subset0 as it is not available in Bookworm (Debian 12), handled by dependencies
RUN apt-get update && apt-get install -y \
gcc \
pkg-config \
@ -19,7 +17,6 @@ RUN apt-get update && apt-get install -y \
libcairo2 \
libpango-1.0-0 \
libpangoft2-1.0-0 \
libharfbuzz-subset0 \
libjpeg-dev \
libopenjp2-7-dev \
libxcb1 \
@ -45,4 +42,4 @@ RUN chmod +x /app/entrypoint.sh
EXPOSE 8000
# Entrypoint
ENTRYPOINT ["/app/entrypoint.sh"]
ENTRYPOINT ["/app/entrypoint.sh"]