Created
February 24, 2018 11:39
-
-
Save lmillucci/aac0f0e665d7b9728abc7845b20ec97e 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 | |
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