Skip to content

Instantly share code, notes, and snippets.

@AshMartian
Created June 21, 2018 17:39
Show Gist options
  • Save AshMartian/dcc5fe596f882f8f5d43bbfa1e853ae7 to your computer and use it in GitHub Desktop.
Save AshMartian/dcc5fe596f882f8f5d43bbfa1e853ae7 to your computer and use it in GitHub Desktop.
php-fpm-imagic
FROM php:7.1-fpm
MAINTAINER Brandon Martin
VOLUME /usr/share/nginx/www/wordpress/
#WORKDIR /code
RUN apt-get update && apt-get install -y wget gnupg libmagickwand-dev imagemagick libzip-dev
RUN pecl install imagick
RUN pecl install zip
RUN docker-php-ext-install mysqli && \
docker-php-ext-install pdo_mysql && \
docker-php-ext-enable imagick
RUN echo 'deb http://apt.newrelic.com/debian/ newrelic non-free' | tee /etc/apt/sources.list.d/newrelic.list
RUN wget -O - https://download.newrelic.com/548C16BF.gpg | apt-key add -
RUN apt-get update
RUN apt-get -y install newrelic-php5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment