Fix missing cffi package to connect to MySQL 8 using Python 3.9

This commit is contained in:
Laurent Indermuehle 2023-01-23 08:31:35 +01:00
parent 37e5c71366
commit cc6fdb32a4
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09

View file

@ -9,7 +9,8 @@ RUN apt update -y && \
mysql-client \
iproute2
RUN python3.9 -m pip install --disable-pip-version-check --no-cache-dir pymysql==0.9.3
# cffi # To connect to MySQL 8 with Python3.9 and PyMySQL
RUN python3.9 -m pip install --disable-pip-version-check --no-cache-dir cffi pymysql==0.9.3
ENV container=docker
CMD ["/sbin/init"]