ソースを参照

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