Created
April 20, 2020 22:35
-
-
Save jonatasrenan/e9ac49c7883a38f389b28f6337b5429f to your computer and use it in GitHub Desktop.
Dockerfile to sendy
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.3-fpm | |
RUN apt-get update \ | |
\ | |
&& apt-get install -y apt-utils | |
\ | |
&& apt-get install -y libcurl3-dev \ | |
&& docker-php-ext-install curl \ | |
\ | |
&& apt-get install -y \ | |
libpng-dev \ | |
libjpeg62-turbo-dev \ | |
libfreetype6-dev \ | |
&& docker-php-ext-configure gd \ | |
--with-gd \ | |
--with-freetype-dir=/usr/include/ \ | |
--with-png-dir=/usr/include/ \ | |
--with-jpeg-dir=/usr/include/ \ | |
&& docker-php-ext-install gd \ | |
\ | |
&& apt-get install -y libpq-dev \ | |
&& docker-php-ext-install pgsql \ | |
\ | |
&& apt-get install -y libmcrypt-dev \ | |
&& pecl install mcrypt-1.0.3 \ | |
&& docker-php-ext-enable mcrypt \ | |
\ | |
&& docker-php-ext-install mysqli \ | |
\ | |
&& apt-get install -y --no-install-recommends libmagickwand-dev \ | |
&& pecl install imagick \ | |
&& docker-php-ext-enable imagick \ | |
\ | |
&& docker-php-ext-install json \ | |
\ | |
&& docker-php-ext-install gettext \ | |
\ | |
&& apt-get install -y zlib1g-dev libzip-dev \ | |
&& docker-php-ext-configure zip \ | |
--with-zlib-dir=/usr \ | |
&& docker-php-ext-install zip \ | |
\ | |
&& rm -rf /var/lib/apt/lists/* \ | |
\ | |
&& mkdir -p /var/log/fpm/ \ | |
&& mkdir -p /var/log/nginx/ \ | |
&& touch /var/log/nginx/php_error.log \ | |
&& chmod 777 /var/log/nginx/php_error.log |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment