Public Repository

Last pushed: 2 years ago
Short Description
php5.3
Full Description

Dockerfile

FROM centos:centos6
MAINTAINER Jihun Lee <zeroion83@gmail.com>

RUN yum -y install libjpeg* libpng* freetype* gd-*
RUN yum -y install httpd
RUN yum -y install mysql mysql-server
RUN yum -y install php php-mysql
RUN yum -y install apr httpd-tools php-common php-cli php-pdo php-devel php-pear
RUN yum -y install openssh-clients
RUN yum -y install git
RUN yum -y install which
RUN sed -i 's/short_open_tag = Off/short_open_tag = On/' /etc/php.ini
RUN yum -y install wget
RUN yum -y install tar
RUN yum -y install php-mbstring
RUN wget https://github.com/phpmyadmin/phpmyadmin/archive/RELEASE_4_0_10_8.tar.gz \
    && mv RELEASE_4_0_10_8.tar.gz /usr/share/ \
    && tar xvzfp /usr/share/RELEASE_4_0_10_8.tar.gz -C /usr/share/ \
    && mv /usr/share/phpmyadmin-RELEASE_4_0_10_8 /usr/share/phpmyadmin \
    && rm /usr/share/RELEASE_4_0_10_8.tar.gz \
    && cp /usr/share/phpmyadmin/config.sample.inc.php /usr/share/phpmyadmin/config.inc.php \
    && echo '<Directory "/usr/share/phpmyadmin">' >> /etc/httpd/conf.d/phpmyadmin.conf \
    && echo 'Allow from 127.0.0.1' >> /etc/httpd/conf.d/phpmyadmin.conf \
    && echo '</Directory>' >> /etc/httpd/conf.d/phpmyadmin.conf \
    && echo 'Alias /phpmyadmin /usr/share/phpmyadmin' >> /etc/httpd/conf.d/phpmyadmin.conf \
    && echo 'Alias /phpMyAdmin /usr/share/phpmyadmin' >> /etc/httpd/conf.d/phpmyadmin.conf \
    && echo 'Alias /mysqladmin /usr/share/phpmyadmin' >> /etc/httpd/conf.d/phpmyadmin.conf
RUN rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
RUN yum -y install php-mcrypt
RUN sed -i 's/AllowOverride None/AllowOverride All/' /etc/httpd/conf/httpd.conf
RUN sed -i 's/#ServerName www.example.com:80/ServerName localhost/' /etc/httpd/conf/httpd.conf

추가해야될 것
yum install sendmail

Docker Pull Command
Owner
lifepost

Comments (0)