Skip to content

Commit

Permalink
Merge pull request #269 from yzewei/main
Browse files Browse the repository at this point in the history
update mysql 8.0.40
  • Loading branch information
yzewei authored Dec 5, 2024
2 parents a3caa24 + 2cc5781 commit 41f2ea1
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 41f2ea1

Please sign in to comment.