Skip to content

Commit

Permalink
update mysql 8.0.40
Browse files Browse the repository at this point in the history
Signed-off-by: yzewei <[email protected]>
  • Loading branch information
yzewei committed Dec 5, 2024
1 parent b1a3259 commit 2cc5781
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/mysql/8.0.40/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 2cc5781

Please sign in to comment.