-
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
0 parents
commit 4ec7ce8
Showing
2 changed files
with
121 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,45 @@ | ||
FROM ubuntu:18.04 | ||
|
||
ARG 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.2 \ | ||
php7.2-common \ | ||
php7.2-cli \ | ||
php7.2-gd \ | ||
php7.2-mysql \ | ||
php7.2-curl \ | ||
php7.2-intl \ | ||
php7.2-mbstring \ | ||
php7.2-bcmath \ | ||
php7.2-imap \ | ||
php7.2-xml \ | ||
php7.2-zip \ | ||
php7.2-cli \ | ||
php7.2-sqlite3 \ | ||
php7.2-msgpack \ | ||
php7.2-pgsql \ | ||
php7.2-soap \ | ||
php7.2-memcached \ | ||
php7.2-igbinary \ | ||
libpng-dev \ | ||
autoconf \ | ||
libtool \ | ||
nasm \ | ||
&& rm -rf /var/lib/apt/lists/* | ||
|
||
#Install nodejs-v8 | ||
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash - && \ | ||
apt-get install -y nodejs | ||
|
||
#Install pngquant | ||
RUN npm install -g --allow-root --unsafe-perm=true pngquant-bin | ||
|
||
#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,76 @@ | ||
FROM php:7.2.24-apache-stretch | ||
|
||
#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 | ||
|
||
#imagemagic | ||
RUN printf "\n" | pecl install imagick | ||
RUN docker-php-ext-enable imagick | ||
|
||
RUN \ | ||
curl -L https://download.newrelic.com/php_agent/release/newrelic-php5-9.7.0.258-linux.tar.gz | tar -C /tmp -zx && \ | ||
export NR_INSTALL_USE_CP_NOT_LN=1 && \ | ||
export NR_INSTALL_SILENT=1 && \ | ||
/tmp/newrelic-php5-*/newrelic-install install && \ | ||
rm -rf /tmp/newrelic-php5-* /tmp/nrinstall* | ||
|
||
RUN a2enmod rewrite negotiation |