Created
August 1, 2017 19:37
-
-
Save fdiasr/42ab6ad89ca9ce8b3cacaee23def3971 to your computer and use it in GitHub Desktop.
Dockerfile php
This file contains hidden or 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.1-fpm | |
| RUN apt-get update \ | |
| && apt-get install -y git libssl-dev curl libmcrypt-dev libzip-dev zip unzip --no-install-recommends \ | |
| && rm -rf /var/lib/apt/lists/* \ | |
| && docker-php-ext-configure bcmath \ | |
| && docker-php-ext-install pdo pdo_mysql \ | |
| && docker-php-ext-install bcmath | |
| RUN php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');" \ | |
| && php composer-setup.php | |
| && php -r "unlink('composer-setup.php');" | |
| && mv composer.phar /usr/local/bin/composer | |
| CMD ["php-fpm", "-F"] | |
| EXPOSE 9000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment