Skip to content

Instantly share code, notes, and snippets.

@jonatasrenan
Created April 20, 2020 22:35
Show Gist options
  • Save jonatasrenan/e9ac49c7883a38f389b28f6337b5429f to your computer and use it in GitHub Desktop.
Save jonatasrenan/e9ac49c7883a38f389b28f6337b5429f to your computer and use it in GitHub Desktop.

Revisions

  1. jonatasrenan renamed this gist Apr 20, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  2. jonatasrenan created this gist Apr 20, 2020.
    47 changes: 47 additions & 0 deletions Dockerfile
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,47 @@
    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