mirror of
https://github.com/macintoshplus/apache2-php.git
synced 2026-04-24 08:48:05 +02:00
from macintoshplus/php56
This commit is contained in:
+4
-30
@@ -1,30 +1,17 @@
|
||||
##
|
||||
# Jb Nahan PHP 5.6 container
|
||||
# Jb Nahan PHP 5.6 + Apache 2 container
|
||||
##
|
||||
|
||||
FROM debian:jessie
|
||||
FROM macintoshplus/php56:latest
|
||||
MAINTAINER Jean-Baptiste Nahan <jean-baptiste@nahan.fr>
|
||||
|
||||
ENV DEBIAN_FRONTEND noninteractive
|
||||
RUN apt-get update && apt-get -y upgrade
|
||||
|
||||
# Common packages
|
||||
RUN apt-get -y install curl wget locales nano git
|
||||
|
||||
RUN echo "Europe/Paris" > /etc/timezone && dpkg-reconfigure -f noninteractive tzdata
|
||||
RUN export LANGUAGE=en_US.UTF-8 && \
|
||||
export LANG=en_US.UTF-8 && \
|
||||
export LC_ALL=en_US.UTF-8 && \
|
||||
locale-gen en_US.UTF-8 && \
|
||||
DEBIAN_FRONTEND=noninteractive dpkg-reconfigure locales
|
||||
|
||||
# Supervisor
|
||||
RUN apt-get install -y supervisor
|
||||
RUN mkdir -p /var/log/supervisor
|
||||
COPY conf/supervisor/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
# Apache
|
||||
RUN apt-get -y install apache2 libapache2-mod-php5 pdftk mysql-client xfonts-75dpi
|
||||
RUN apt-get -y install apache2 libapache2-mod-php5
|
||||
RUN a2enmod rewrite
|
||||
RUN a2enmod headers
|
||||
ENV APACHE_RUN_USER www-data
|
||||
@@ -33,16 +20,10 @@ ENV APACHE_LOG_DIR /var/log/apache2
|
||||
RUN rm /etc/apache2/sites-enabled/000-default.conf
|
||||
RUN usermod -u 10000 www-data
|
||||
|
||||
COPY bin/wkhtmltox-0.12.2.1_linux-jessie-amd64.deb /root/
|
||||
RUN dpkg -i /root/wkhtmltox-0.12.2.1_linux-jessie-amd64.deb
|
||||
|
||||
# PHP
|
||||
RUN apt-get -y install php5-cli php5-curl php-soap php5-imagick php5-gd php5-mcrypt php5-mysql php5-xmlrpc php5-xsl php5-xdebug php-apc php5-ldap php5-gmp php5-intl php5-redis
|
||||
RUN cp /usr/share/php5/php.ini-development /etc/php5/cli/php.ini
|
||||
RUN cp /usr/share/php5/php.ini-development /etc/php5/apache2/php.ini
|
||||
RUN sed -i 's/\;date\.timezone\ \=/date\.timezone\ \=\ Europe\/Paris/g' /etc/php5/cli/php.ini
|
||||
RUN sed -i 's/\;date\.timezone\ \=/date\.timezone\ \=\ Europe\/Paris/g' /etc/php5/apache2/php.ini
|
||||
#RUN sed -i 's/;include_path = ".:\/usr\/share\/php"/include_path = ".:\/var\/www\/library"/g' /etc/php5/cli/php.ini
|
||||
|
||||
#RUN sed -i 's/\;include_path = ".:\/usr\/share\/php"/include_path = ".:\/var\/www\/library"/g' /etc/php5/apache2/php.ini
|
||||
RUN sed -i 's/post_max_size = 8M/post_max_size = 50M/g' /etc/php5/apache2/php.ini
|
||||
RUN sed -i 's/upload_max_filesize = 2M/upload_max_filesize = 50M/g' /etc/php5/apache2/php.ini
|
||||
@@ -50,13 +31,6 @@ RUN sed -i 's/\;\ max_input_vars\ \=\ 1000/max_input_vars\ \=\ 25000
|
||||
RUN sed -i 's/memory_limit\ \=\ 128M/memory_limit\ \=\ 512M/g' /etc/php5/apache2/php.ini
|
||||
RUN sed -i 's/max_execution_time\ \=\ 30/max_execution_time\ \=\ 120/g' /etc/php5/apache2/php.ini
|
||||
|
||||
#PEAR
|
||||
|
||||
RUN pear channel-discover pear.phpmd.org && pear channel-discover pear.pdepend.org && pear channel-discover pear.phpdoc.org && pear channel-discover components.ez.no
|
||||
RUN pear install PHP_CodeSniffer && pear install --alldeps phpmd/PHP_PMD
|
||||
RUN git clone https://github.com/lapistano/Symfony2-coding-standard.git /usr/share/php/PHP/CodeSniffer/Standards/Symfony2
|
||||
|
||||
|
||||
# PaaS bootstrap
|
||||
COPY bin/container-bootstrap.sh /usr/bin/container-bootstrap.sh
|
||||
RUN chmod +x /usr/bin/container-bootstrap.sh
|
||||
|
||||
Binary file not shown.
Reference in New Issue
Block a user