Skip to content

Commit 237e39b

Browse files
authored
MySql config file permissions fix
Reason: [Warning] World-writable config file '/etc/mysql/docker-default.d/my.cnf' is ignored
1 parent 861ea6b commit 237e39b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

mysql/Dockerfile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone &
1313

1414
COPY my.cnf /etc/mysql/conf.d/my.cnf
1515

16+
RUN chmod 0444 /etc/mysql/conf.d/my.cnf
17+
1618
CMD ["mysqld"]
1719

1820
EXPOSE 3306

0 commit comments

Comments
 (0)