Public Repository

Last pushed: 6 months ago
Short Description
Entorno LAMP con PHP5.6
Full Description

DockFile


FROM ubuntu:16.04

MAINTAINER RolandoVela version: 0.1

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get -y install software-properties-common
RUN export LANG=C.UTF-8 && add-apt-repository ppa:ondrej/php
RUN apt-get update
RUN apt-get install -y apache2 && apt-get clean
RUN apt-get -y install php5.6
RUN apt-get install -y php5.6-mcrypt php5.6-mbstring php5.6-curl php5.6-cli php5.6-mysql php5.6-gd php5.6-intl php5.6-xsl php5.6-zip libapache2-mod-php5.6 php5.6-xml
RUN a2dismod mpm_event && a2enmod mpm_prefork && a2enmod rewrite

VOLUME [ "/var/www/html" ]
WORKDIR /var/www/html

ENV APACHE_RUN_USER www-data
ENV APACHE_RUN_GROUP www-data
ENV APACHE_LOG_DIR /var/log/apache2
ENV APACHE_PID_FILE /var/run/apache2.pid
ENV APACHE_RUN_DIR /var/run/apache2
ENV APACHE_LOCK_DIR /var/lock/apache2

RUN mkdir -p $APACHE_RUN_DIR $APACHE_LOCK_DIR $APACHE_LOG_DIR

EXPOSE 80

ENTRYPOINT [ "/usr/sbin/apache2" ]
CMD ["-D", "FOREGROUND"]


Docker Pull Command
Owner
rolandovela