Skip to content

Commit

Permalink
fix file name and format
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesreid1 committed Apr 27, 2020
1 parent c34607d commit 20e811f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Expand Up @@ -5,7 +5,7 @@ MAINTAINER charles@charlesreid1.com
VOLUME ["/var/lib/mysql"]

# put password in a password file
RUN printf "[client]\nuser: root\npassword: $MYSQL_ROOT_PASSWORD" > /etc/mysql/conf.d/rootpw.cnf
RUN chmod 0600 /etc/mysql/conf.d/rootpw.cnf
RUN printf "[client]\nuser=root\npassword=$MYSQL_ROOT_PASSWORD" > /root/.mysql.rootpw.cnf
RUN chmod 0600 /root/.mysql.rootpw.cnf

RUN chown mysql:mysql /var/lib/mysql

0 comments on commit 20e811f

Please sign in to comment.