11#  NOTE: Most of the file is borrowed from https://github.com/docker-library/mysql/blob/master/8.0/Dockerfile.debian
22
3- FROM  debian:12.7 -slim
3+ FROM  debian:12.9 -slim
44
55ARG  VERSION=0.0.0
66ENV  VERSION=${VERSION}
@@ -51,6 +51,7 @@ RUN set -eux \
5151RUN  set -eux \
5252    && DEBIAN_FRONTEND=noninteractive apt-get update -qq \
5353    && DEBIAN_FRONTEND=noninteractive apt-get install -qq -y --no-install-recommends \
54+         bzip2 \
5455        openssl \
5556#  FATAL ERROR: please install the following Perl modules before executing /usr/local/mysql/scripts/mysql_install_db:
5657#  File::Basename
@@ -63,21 +64,24 @@ RUN set -eux \
6364    && rm -rf /var/lib/apt/lists/* \
6465    && true
6566
66- RUN  set -eux \
67- #  gpg: key 3A79BD29: public key "MySQL Release Engineering <mysql-build@oss.oracle.com>" imported
68-     && key='bca43417c3b485dd128ec6d4b7b3b788a8d3785c'  \
69-     && export GNUPGHOME="$(mktemp -d)"  \
70-     && gpg --batch --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys "$key"  \
71-     && mkdir -p /etc/apt/keyrings \
72-     && gpg --batch --export "$key"  > /etc/apt/keyrings/mysql.gpg \
73-     && gpgconf --kill all \
74-     && rm -rf "$GNUPGHOME"  \
67+ RUN  set -eux; \
68+ #  pub   rsa4096 2023-10-23 [SC] [expires: 2025-10-22]
69+ #        BCA4 3417 C3B4 85DD 128E  C6D4 B7B3 B788 A8D3 785C
70+ #  uid           [ unknown] MySQL Release Engineering <mysql-build@oss.oracle.com>
71+ #  sub   rsa4096 2023-10-23 [E] [expires: 2025-10-22]
72+ 	key='BCA4 3417 C3B4 85DD 128E C6D4 B7B3 B788 A8D3 785C' ; \
73+ 	export GNUPGHOME="$(mktemp -d)" ; \
74+ 	gpg --batch --keyserver keyserver.ubuntu.com --recv-keys "$key" ; \
75+ 	mkdir -p /etc/apt/keyrings; \
76+ 	gpg --batch --export "$key"  > /etc/apt/keyrings/mysql.gpg; \
77+ 	gpgconf --kill all; \
78+ 	rm -rf "$GNUPGHOME"  \
7579    && true
7680
7781ENV  MYSQL_MAJOR 8.0
78- ENV  MYSQL_VERSION 8.0.39 -1debian12
82+ ENV  MYSQL_VERSION 8.0.41 -1debian12
7983
80- #  https://repo.mysql.com/apt/debian/pool/mysql-8.0/m/mysql-community/mysql-client_8.0.39 -1debian12_amd64.deb
84+ #  https://repo.mysql.com/apt/debian/pool/mysql-8.0/m/mysql-community/mysql-client_8.0.41 -1debian12_amd64.deb
8185RUN  set -eux \
8286    && echo 'deb [ signed-by=/etc/apt/keyrings/mysql.gpg ] http://repo.mysql.com/apt/debian/ bookworm mysql-8.0'  > /etc/apt/sources.list.d/mysql.list \
8387    && true
0 commit comments