This repository has been archived by the owner on May 4, 2021. It is now read-only.
Permalink
Cannot retrieve contributors at this time
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?
apache-php/Dockerfile
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
34 lines (29 sloc)
958 Bytes
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 ubuntu:trusty | |
MAINTAINER Fernando Mayo <fernando@tutum.co> | |
# Install base packages | |
RUN apt-get update && \ | |
DEBIAN_FRONTEND=noninteractive apt-get -yq install \ | |
curl \ | |
apache2 \ | |
libapache2-mod-php5 \ | |
php5-mysql \ | |
php5-mcrypt \ | |
php5-gd \ | |
php5-curl \ | |
php-pear \ | |
php-apc && \ | |
rm -rf /var/lib/apt/lists/* && \ | |
curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | |
RUN /usr/sbin/php5enmod mcrypt | |
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf && \ | |
sed -i "s/variables_order.*/variables_order = \"EGPCS\"/g" /etc/php5/apache2/php.ini | |
ENV ALLOW_OVERRIDE **False** | |
# Add image configuration and scripts | |
ADD run.sh /run.sh | |
RUN chmod 755 /*.sh | |
# Configure /app folder with sample app | |
RUN mkdir -p /app && rm -fr /var/www/html && ln -s /app /var/www/html | |
ADD sample/ /app | |
EXPOSE 80 | |
WORKDIR /app | |
CMD ["/run.sh"] |