Commit 4d8e9c46 authored by kalvin's avatar kalvin

fixbugs

parent 7ed5bd57
...@@ -8,14 +8,6 @@ ENV AUTO_RUN_DIR /docker-entrypoint-initdb.d ...@@ -8,14 +8,6 @@ ENV AUTO_RUN_DIR /docker-entrypoint-initdb.d
COPY my.cnf /etc/mysql/mysql.conf.d/mysqld.cnf COPY my.cnf /etc/mysql/mysql.conf.d/mysqld.cnf
COPY mysqld_charset.cnf /etc/mysql/conf.d/mysqld_charset.cnf COPY mysqld_charset.cnf /etc/mysql/conf.d/mysqld_charset.cnf
#把要执行的shell文件放到/docker-entrypoint-initdb.d/目录下,容器会自动执行这个shell
COPY ./init_db_data.sh $AUTO_RUN_DIR/
#给执行文件增加可执行权限
RUN chmod a+x $AUTO_RUN_DIR/init_db_data.sh
RUN echo "dash dash/sh boolean false" | debconf-set-selections
RUN DEBIAN_FRONTEND=noninteractive dpkg-reconfigure dash
# 解决时区问题 # 解决时区问题
ENV TZ=Asia/Shanghai ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment