Files
RuoYi-Cloud/docker/mysql/dockerfile
丢节操吧 10f97aee5d update docker/mysql/dockerfile.
增加执行权限,解决启动mysql容器后,不自动执行sql脚本的问题
2021-09-11 10:18:45 +00:00

9 lines
254 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 基础镜像
FROM mysql:5.7
# author
MAINTAINER ruoyi
# 执行sql脚本
ADD ./db/*.sql /docker-entrypoint-initdb.d/
# 增加执行权限解决启动mysql容器后不自动执行sql脚本的问题
RUN chmod a+x /docker-entrypoint-initdb.d