-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
111 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
# Pull latest ubuntu image | ||
FROM ubuntu:latest | ||
|
||
MAINTAINER Sahil Darji<[email protected]> | ||
|
||
ENV DEBIAN_FRONTEND noninteractive | ||
|
||
#Install dependencies & php | ||
RUN apt-get update && apt-get install -y \ | ||
software-properties-common \ | ||
&& add-apt-repository ppa:ondrej/php -y && apt-get install -y \ | ||
build-essential \ | ||
unzip \ | ||
curl \ | ||
php7.3 \ | ||
php7.3-common \ | ||
php7.3-cli \ | ||
php7.3-gd \ | ||
php7.3-mysql \ | ||
php7.3-curl \ | ||
php7.3-intl \ | ||
php7.3-mbstring \ | ||
php7.3-bcmath \ | ||
php7.3-imap \ | ||
php7.3-xml \ | ||
php7.3-zip \ | ||
php7.3-cli \ | ||
php7.3-sqlite3 \ | ||
php7.3-msgpack \ | ||
php7.3-pgsql \ | ||
php7.3-soap \ | ||
php7.3-memcached \ | ||
php7.3-igbinary \ | ||
libpng-dev \ | ||
autoconf \ | ||
libtool \ | ||
nasm \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
#Install composer | ||
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,67 @@ | ||
FROM php:7.3-apache-stretch | ||
|
||
MAINTAINER Sahil Darji<[email protected]> | ||
|
||
#Add apt packages dependencies for PHP extensions | ||
RUN apt-get update && apt-get install -y \ | ||
libmagickwand-dev \ | ||
libxml2-dev \ | ||
sendmail \ | ||
libpng-dev \ | ||
zlib1g-dev \ | ||
libgmp-dev \ | ||
libc-client-dev \ | ||
libkrb5-dev \ | ||
zlib1g-dev \ | ||
libicu-dev \ | ||
g++ \ | ||
libpq-dev \ | ||
libzip-dev \ | ||
libxslt-dev \ | ||
libjpeg62-turbo-dev \ | ||
pkg-config \ | ||
patch \ | ||
libpng-dev \ | ||
libfreetype6-dev \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
#Install IGBINARY from source | ||
ENV EXT_IGBINARY_VERSION=3.0.1 | ||
RUN docker-php-source extract && \ | ||
mkdir -p /usr/src/php/ext/igbinary && \ | ||
curl -fsSL https://github.com/igbinary/igbinary/archive/$EXT_IGBINARY_VERSION.tar.gz | tar xvz -C /usr/src/php/ext/igbinary --strip 1 | ||
|
||
#Enable extensions | ||
RUN docker-php-ext-configure imap --with-kerberos --with-imap-ssl | ||
|
||
#gd setup for jpeg | ||
RUN docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ | ||
|
||
RUN docker-php-ext-install \ | ||
exif \ | ||
gd \ | ||
gettext \ | ||
gmp \ | ||
imap \ | ||
intl \ | ||
bcmath \ | ||
calendar \ | ||
dba \ | ||
mysqli \ | ||
pcntl \ | ||
pdo_mysql \ | ||
pdo_pgsql \ | ||
pgsql \ | ||
shmop \ | ||
soap \ | ||
sockets \ | ||
sysvmsg \ | ||
sysvsem \ | ||
sysvshm \ | ||
wddx \ | ||
zip \ | ||
igbinary \ | ||
xsl \ | ||
opcache | ||
|
||
RUN a2enmod rewrite negotiation |