php 5.5 with apache2 ready
356
FROM ubuntu:14.04 MAINTAINER Vyshakh P [email protected]
RUN apt-get update
&& apt-get install -y curl apache2 libapache2-mod-php5 memcached
php5-cli php5-readline php5-intl php5-json php5-curl php5-mcrypt php5-dev php5-gd php5-mysql php-pear
php5-memcached php5-memcache
ENV OS_LOCALE="en_US.UTF-8"
RUN apt-get update && apt-get install -y locales && locale-gen ${OS_LOCALE}
ENV LANG=${OS_LOCALE}
LANGUAGE=${OS_LOCALE}
LC_ALL=${OS_LOCALE}
DEBIAN_FRONTEND=noninteractive
ENV APACHE_CONF_DIR=/etc/apache2
PHP_CONF_DIR=/etc/php/5.5
PHP_DATA_DIR=/var/lib/php
RUN mkdir -p ${PHP_DATA_DIR}
RUN
BUILD_DEPS='software-properties-common python-software-properties'
&& dpkg-reconfigure locales
&& apt-get install --no-install-recommends -y $BUILD_DEPS
&& add-apt-repository -y ppa:ondrej/php
&& add-apt-repository -y ppa:ondrej/apache2
&& apt-get update && apt-get -y upgrade \
&& cp /dev/null ${APACHE_CONF_DIR}/conf-available/other-vhosts-access-log.conf
&& rm ${APACHE_CONF_DIR}/sites-enabled/000-default.conf ${APACHE_CONF_DIR}/sites-available/000-default.conf
&& a2enmod rewrite php5 headers expires \
&& php5enmod mcrypt \
&& curl -sS https://getcomposer.org/installer | php -- --version=1.6.4 --install-dir=/usr/local/bin --filename=composer \
&& apt-get purge -y --auto-remove $BUILD_DEPS
&& apt-get autoremove -y
RUN touch /var/log/apache2/access.log && touch /var/log/apache2/error.log
RUN rm -rf /var/lib/apt/lists/*
RUN ln -sf /dev/stdout /var/log/apache2/access.log RUN ln -sf /dev/stderr /var/log/apache2/error.log RUN chown www-data:www-data ${PHP_DATA_DIR} -Rf
COPY ./docker/configs/apache2.conf ${APACHE_CONF_DIR}/apache2.conf COPY ./docker/configs/app.conf ${APACHE_CONF_DIR}/sites-enabled/app.conf COPY ./docker/configs/php.ini ${PHP_CONF_DIR}/apache2/conf.d/custom.ini
RUN php -v
COPY ./docker/entrypoint.sh /sbin/entrypoint.sh RUN chmod 755 /sbin/entrypoint.sh
#COPY . /var/www/app/
#RUN cd /var/www/app/tools/ && composer install
WORKDIR /var/www/app/ EXPOSE 80 443
CMD ["/sbin/entrypoint.sh"]
Content type
Image
Digest
Size
219.2 MB
Last updated
about 8 years ago
docker pull livspaceeng/php55-apache2:0.0.3