Permalink
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
lamp/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
55 lines (46 sloc)
1.08 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM bigfleet/centos7base | |
# Define args and set a default value | |
ARG maintainer=tier | |
ARG imagename=lamp | |
ARG tagname=20160727-dev | |
ARG version=1.0 | |
MAINTAINER $maintainer | |
LABEL Vendor="Internet2" | |
LABEL ImageType="COmanage" | |
LABEL ImageName=$imagename | |
LABEL TagName=$tagname | |
LABEL ImageOS=centos7 | |
LABEL Version=$version | |
LABEL Build docker build --rm --tag $registry/$maintainer/$imagename:$tagname . | |
# Install deps. | |
RUN yum -y install \ | |
httpd \ | |
mysql-devel \ | |
mysql-libs \ | |
mod_ssl \ | |
php \ | |
php-openssl \ | |
php-cli \ | |
php-ldap \ | |
php-mbstring \ | |
php-mcrypt \ | |
php-mysql \ | |
php-pear-MDB2-Driver-mysqli \ | |
php-pecl-memcached \ | |
php-xml \ | |
&& yum clean all | |
# | |
# UTC Timezone & Networking | |
# | |
RUN ln -sf /usr/share/zoneinfo/UTC /etc/localtime && \ | |
echo "NETWORKING=yes" > /etc/sysconfig/network | |
# | |
# Global PHP configuration changes | |
# | |
RUN sed -i \ | |
-e 's~^;date.timezone =$~date.timezone = Europe/Rome~g' \ | |
-e 's~^;user_ini.filename =$~user_ini.filename =~g' \ | |
/etc/php.ini | |
RUN echo '<?php phpinfo(); ?>' > /var/www/html/index.php | |
# Port | |
EXPOSE 80 443 |