From 2cc578192efbc556f1d7b8efd14311eca62b9d8b Mon Sep 17 00:00:00 2001 From: yzewei Date: Thu, 5 Dec 2024 15:24:49 +0800 Subject: [PATCH] update mysql 8.0.40 Signed-off-by: yzewei --- library/mysql/8.0.40/Dockerfile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/mysql/8.0.40/Dockerfile b/library/mysql/8.0.40/Dockerfile index 284e581c..c6078a57 100644 --- a/library/mysql/8.0.40/Dockerfile +++ b/library/mysql/8.0.40/Dockerfile @@ -30,7 +30,8 @@ RUN yum install -y python38-devel libssh wget tar glibc-common && \ # 从构建阶段复制 MySQL 到运行时镜像 COPY --from=builder /usr/local/mysql /usr/local/mysql -COPY --from=builder /etc/my.cnf /etc/my.cnf +#COPY --from=builder /etc/my.cnf /etc/my.cnf +COPY config/conf.d/my.cnf /etc/my.cnf COPY --from=builder /etc/my.cnf.d /etc/my.cnf.d COPY --from=builder /etc/logrotate.d/mysql /etc/logrotate.d/mysql @@ -88,6 +89,7 @@ RUN set -eux; \ mysqlsh --version; \ yum clean packages +RUN chown -R mysql:mysql /usr/local/mysql # Expose MySQL 服务端口 EXPOSE 3306 33060