FROM centos:6.6COPY config.default.php /opt/#COPY config.default.php /usr/share/phpMyAdmin/libraries
FROM centos:6.6COPY config.default.php /opt/#COPY config.default.php /usr/share/phpMyAdmin/libraries/config.default.phpWORKDIR /opt/COPY epel-release-6-8.noarch.rpm /opt/COPY phpMyAdmin.conf /etc/httpd/conf.d/COPY supervisord.conf /etc/supervisord.confRUN rpm -ivh epel-release-6-8.noarch.rpmRUN yum install -y mysql-server mysqlRUN yum -y install httpd php php-mysql php-gd libjpeg* php-ldap php-odbc php-pear supervisor php-xml php-xmlrpc php-mbstring php-bcmath php-mhash phpmyadmin php-mcryptRUN mv /opt/config.default.php /usr/share/phpMyAdmin/libraries/RUN /etc/init.d/mysqld startRUN mkdir -p /var/log/supervisorEXPOSE 3306 80CMD ["/usr/bin/supervisord"]
root@localhost:~/phpmyadmin# vim supervisord.conf
[supervisord]nodaemon=true[program:mysqld]command=/usr/bin/mysqld_safe[program:apachectl]command=/usr/sbin/apachectl -D FOREGROUND
在Dockerfile目录下 开始build
docker build -t phpmyadmin .