Initial commit
This commit is contained in:
9
docker/Dockerfile
Normal file
9
docker/Dockerfile
Normal file
@@ -0,0 +1,9 @@
|
||||
# 基于官方 MySQL 8.0.24 镜像
|
||||
FROM mysql:8.0.24
|
||||
|
||||
# 设置环境变量,防止警告
|
||||
ENV MYSQL_ROOT_PASSWORD=123456
|
||||
|
||||
# 将本地的 C9_fire.sql 文件复制到容器内的 /docker-entrypoint-initdb.d/ 目录下
|
||||
# MySQL 官方镜像会自动检测并执行该目录下的 .sql 文件
|
||||
# COPY C9_fire.sql /docker-entrypoint-initdb.d/C9_fire.sql
|
||||
Reference in New Issue
Block a user