Created
April 12, 2018 00:07
-
-
Save andrewmclagan/41ebdc5a9802ad2b9e3132d459f56faf to your computer and use it in GitHub Desktop.
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
FROM php:7.2-fpm-alpine3.7 | |
MAINTAINER "Andrew McLagan" | |
RUN apk --no-cache add \ | |
freetype libpng libjpeg-turbo freetype-dev libpng-dev libjpeg-turbo-dev \ | |
wget \ | |
git \ | |
supervisor \ | |
bash \ | |
&& docker-php-ext-install \ | |
mysqli \ | |
pdo_mysql \ | |
opcache \ | |
pcntl \ | |
&& docker-php-ext-configure gd \ | |
--with-gd \ | |
--with-freetype-dir=/usr/include/ \ | |
--with-png-dir=/usr/include/ \ | |
--with-jpeg-dir=/usr/include/ \ | |
&& NPROC=$(grep -c ^processor /proc/cpuinfo 2>/dev/null || 1) \ | |
&& docker-php-ext-install -j${NPROC} gd \ | |
&& curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --filename=composer \ | |
&& composer global require "hirak/prestissimo" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment