fix: install mysql-connector-python via pip instead of apt

python3-mysql.connector not available in debian bookworm

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
Franck Garnier
2026-04-12 10:27:26 -04:00
parent 97e7101855
commit b1737ba89d

View File

@@ -13,13 +13,13 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
python3-numpy \ python3-numpy \
python3-opencv \ python3-opencv \
python3-pil \ python3-pil \
python3-mysql.connector \
wget \ wget \
ca-certificates \ ca-certificates \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
# Install additional Python packages # Install additional Python packages via pip
RUN pip3 install --no-cache-dir --break-system-packages \ RUN pip3 install --no-cache-dir --break-system-packages \
mysql-connector-python \
requests \ requests \
python-dotenv python-dotenv