Skip to content

Instantly share code, notes, and snippets.

@lmillucci
Created February 24, 2018 11:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lmillucci/aac0f0e665d7b9728abc7845b20ec97e to your computer and use it in GitHub Desktop.
Save lmillucci/aac0f0e665d7b9728abc7845b20ec97e to your computer and use it in GitHub Desktop.
FROM php:7.2-fpm
RUN apt-get update && apt-get install -y --no-install-recommends \
curl \
libmemcached-dev \
libz-dev \
libpq-dev \
libjpeg-dev \
libpng-dev \
libfreetype6-dev \
libssl-dev \
libmcrypt-dev \
zlib1g-dev \
# Install composer
&& php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \
&& php composer-setup.php --install-dir=/usr/local/bin --filename=composer \
&& php -r "unlink('composer-setup.php');" \
# Install the PHP pdo_pgsql and zip extentions
&& docker-php-ext-install zip pdo_pgsql \
# Install the PHP gd library
&& docker-php-ext-configure gd \
--enable-gd-native-ttf \
--with-jpeg-dir=/usr/lib \
--with-freetype-dir=/usr/include/freetype2 && \
docker-php-ext-install gd
ENV PATH ${PATH}:~/.composer/vendor/bin
WORKDIR /var/www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment