Update Dockerfile

This commit is contained in:
那他 2019-02-11 16:31:08 +08:00 committed by GitHub
parent 57a5857c1f
commit 4155491719
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -18,6 +18,7 @@ RUN sed -i 's/archive.ubuntu.com/'$ubuntu_mirror'/g' /etc/apt/sources.list && \
# install mysql
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y mysql-server && \
mkdir -p /var/run/mysqld && chown mysql:mysql /var/run/mysqld && \ # 增加此行
# sed -i -e "s/^bind-address\s*=\s*127.0.0.1/bind-address = 0.0.0.0/" /etc/mysql/mysql.conf.d/mysqld.cnf && \
sed -i 's/^\(log_error\s.*\)/# \1/' /etc/mysql/my.cnf && \
echo "mysqld_safe &" > /tmp/mysql_config && \