Skip to content

Instantly share code, notes, and snippets.

@andrewmclagan
Created April 12, 2018 00:07
Show Gist options
  • Save andrewmclagan/41ebdc5a9802ad2b9e3132d459f56faf to your computer and use it in GitHub Desktop.
Save andrewmclagan/41ebdc5a9802ad2b9e3132d459f56faf to your computer and use it in GitHub Desktop.
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