From 8820501644bdfd7b763ce135b6381590cc7ea212 Mon Sep 17 00:00:00 2001 From: James Whiteman Date: Fri, 7 Apr 2017 14:24:15 +1200 Subject: [PATCH] Update Dockerfile --- mysql/Dockerfile | 18 +----------------- 1 file changed, 1 insertion(+), 17 deletions(-) diff --git a/mysql/Dockerfile b/mysql/Dockerfile index b483cc2..e494b65 100644 --- a/mysql/Dockerfile +++ b/mysql/Dockerfile @@ -2,26 +2,10 @@ FROM mysql:5.7 MAINTAINER Mahmoud Zalt -ADD startup /etc/mysql/startup - RUN chown -R mysql:root /var/lib/mysql/ -ARG MYSQL_DATABASE=default -ARG MYSQL_USER=default -ARG MYSQL_PASSWORD=secret -ARG MYSQL_ROOT_PASSWORD=root - -ENV MYSQL_DATABASE=$MYSQL_DATABASE -ENV MYSQL_USER=$MYSQL_USER -ENV MYSQL_PASSWORD=$MYSQL_PASSWORD -ENV MYSQL_ROOT_PASSWORD=$MYSQL_ROOT_PASSWORD - -RUN sed -i 's/MYSQL_DATABASE/'$MYSQL_DATABASE'/g' /etc/mysql/startup && \ - sed -i 's/MYSQL_USER/'$MYSQL_USER'/g' /etc/mysql/startup && \ - sed -i 's/MYSQL_PASSWORD/'$MYSQL_PASSWORD'/g' /etc/mysql/startup - ADD my.cnf /etc/mysql/conf.d/my.cnf -CMD ["mysqld", "--init-file=/etc/mysql/startup"] +CMD ["mysqld"] EXPOSE 3306