Sign inSign up

brunomarins/httpd_php7

By brunomarins

•Updated almost 7 years ago

Image
0

668

brunomarins/httpd_php7 repository overview

Dockerfile used for build to image:

FROM 7-apache

RUN usermod -u 1000 www-data RUN groupmod -g 1000 www-data

⁠Get repository and install wget and vim

RUN apt-get update && apt-get install --no-install-recommends -y
wget
vim
git
unzip

RUN apt-get update &&
apt-get install -y libfreetype6-dev libxml2-dev libaio-dev unzip jq

COPY instantclient-basic-linux.x64-12.2.0.1.0.zip /usr/local COPY instantclient-sdk-linux.x64-12.2.0.1.0.zip /usr/local

RUN cd /usr/local/
&& unzip /usr/local/instantclient-basic-linux.x64-12.2.0.1.0.zip
&& unzip /usr/local/instantclient-sdk-linux.x64-12.2.0.1.0.zip
&& ln -s /usr/local/instantclient_12_2/ /usr/local/instantclient \
&& ln -s /usr/local/instantclient_12_2/libclntsh.so.12.1 /usr/local/instantclient/libclntsh.so
&& ln -s /usr/local/instantclient_12_2/libclntshcore.so.12.1 /usr/local/instantclient/libclntshcore.so
&& ln -s /usr/local/instantclient_12_2/libocci.so.12.1 /usr/local/instantclient/libocci.so
&& echo /usr/local/instantclient_12_2/ > /etc/ld.so.conf.d/oracle-instantclient && rm -rf /usr/local/*.zip

ENV LD_LIBRARY_PATH /usr/local/instantclient_12_2/

OCI and mysql RUN echo 'instantclient,/usr/local/instantclient' | pecl install oci8
&& docker-php-ext-configure pdo_oci --with-pdo-oci=instantclient,/usr/local/instantclient,12.2
&& docker-php-ext-install
pdo_mysql
mysqli
pdo_oci \
&& docker-php-ext-enable
oci8

-- GD RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ &&
docker-php-ext-install -j$(nproc) gd

Install soap RUN apt-get update
&& apt-get install -y libxml2-dev
&& docker-php-ext-install soap

⁠Install MCrypt -not work in php7.3

RUN apt-get update
&& apt-get install -y libmcrypt-dev
&& docker-php-ext-install mcrypt

Install Intl RUN apt-get update
&& apt-get install -y libicu-dev
&& docker-php-ext-install intl

RUN apt-get update
&& apt-get install -y libzip-dev
docker-php-ext-install zip

Install IMap RUN apt-get update && apt-get install -y libc-client-dev libkrb5-dev && rm -r /var/lib/apt/lists/* RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl
&& docker-php-ext-install imap

RUN docker-php-ext-install\
bcmath

RUN a2enmod rewrite

⁠Configure Apache Document Root

ENV APACHE_DOC_ROOT /var/www/html ENV PHP_TIMEZONE America/Sao_Paulo

RUN curl -sS https://getcomposer.org/installer⁠ | php --
--install-dir=/usr/local/bin
--filename=composer

RUN pecl install xdebug && docker-php-ext-enable xdebug

Tag summary

Content type

Image

Digest

Size

432.2 MB

Last updated

almost 7 years ago

docker pull brunomarins/httpd_php7