Support docker source code construction

This commit is contained in:
zhangqi
2022-02-15 10:43:11 +08:00
parent b91bec15f2
commit e4534c359f
9 changed files with 281 additions and 29 deletions

View File

@@ -0,0 +1,13 @@
FROM mysql:5.7.37
COPY mysqld.cnf /etc/mysql/mysql.conf.d/
ENV TZ=Asia/Shanghai
ENV MYSQL_ROOT_PASSWORD=root
RUN apt-get update \
&& apt -y install wget \
&& wget https://ghproxy.com/https://raw.githubusercontent.com/didi/LogiKM/master/distribution/conf/create_mysql_table.sql -O /docker-entrypoint-initdb.d/create_mysql_table.sql
EXPOSE 3306
VOLUME ["/var/lib/mysql"]