浏览代码

MySql config file permissions fix

Reason: [Warning] World-writable config file '/etc/mysql/docker-default.d/my.cnf' is ignored
PeliCan 5 年之前
父节点
当前提交
237e39b40d
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      mysql/Dockerfile

+ 2 - 0
mysql/Dockerfile

@@ -13,6 +13,8 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone &
 
 COPY my.cnf /etc/mysql/conf.d/my.cnf
 
+RUN chmod 0444 /etc/mysql/conf.d/my.cnf
+
 CMD ["mysqld"]
 
 EXPOSE 3306