Add php5.4 versions

patch-1
louisbl 2015-04-23 16:37:12 +02:00
parent 94102dfa70
commit bb284756b2
4 changed files with 135 additions and 0 deletions

35
5.4/apache/Dockerfile Normal file
View File

@ -0,0 +1,35 @@
FROM php:5.4-apache
MAINTAINER louisbl <louis@beltramo.me>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
g++ \
libbz2-dev \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libpq-dev \
libreadline6-dev \
libssl-dev \
libxml2-dev \
libzip-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-gd-dir=/usr/include/ \
&& docker-php-ext-install \
bz2 \
gd \
intl \
mbstring \
mcrypt \
mysqli \
pdo_mysql \
pdo_pgsql \
pgsql \
zip

38
5.4/cli/Dockerfile Normal file
View File

@ -0,0 +1,38 @@
FROM php:5.4-cli
MAINTAINER louisbl <louis@beltramo.me>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
g++ \
libbz2-dev \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libpq-dev \
libreadline6-dev \
libssl-dev \
libxml2-dev \
libzip-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-gd-dir=/usr/include/ \
&& docker-php-ext-install \
bz2 \
gd \
intl \
mbstring \
mcrypt \
mysqli \
pdo_mysql \
pdo_pgsql \
pgsql \
zip
RUN mkdir -p /var/www/html && chown -R www-data:www-data /var/www/html
WORKDIR /var/www/html

37
5.4/fpm/Dockerfile Normal file
View File

@ -0,0 +1,37 @@
FROM php:5.4-fpm
MAINTAINER louisbl <louis@beltramo.me>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && apt-get install -y --no-install-recommends \
bzip2 \
g++ \
libbz2-dev \
libcurl4-openssl-dev \
libfreetype6-dev \
libicu-dev \
libjpeg62-turbo-dev \
libmcrypt-dev \
libpng12-dev \
libpq-dev \
libreadline6-dev \
libssl-dev \
libxml2-dev \
libzip-dev \
zlib1g-dev \
&& rm -rf /var/lib/apt/lists/*
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-gd-dir=/usr/include/ \
&& docker-php-ext-install \
bz2 \
gd \
intl \
mbstring \
mcrypt \
mysqli \
pdo_mysql \
pdo_pgsql \
pgsql \
zip
COPY php-fpm.conf /usr/local/etc/php-fpm.conf

25
5.4/fpm/php-fpm.conf Normal file
View File

@ -0,0 +1,25 @@
[global]
error_log = /proc/self/fd/2
daemonize = no
[www]
; if we send this to /proc/self/fd/1, it never appears
access.log = /proc/self/fd/2
user = www-data
group = www-data
listen = [::]:9000
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
clear_env = false
catch_workers_output = yes
php_flag[log_errors] = on