khnffz

app.dockerfile

Oct 1st, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.21 KB | None | 0 0
  1. FROM php:7.2-fpm
  2.  
  3. MAINTAINER iwan.susanto@halalway.co.id
  4.  
  5.  
  6. RUN apt-get update && \
  7.     apt-get install -y --force-yes --no-install-recommends \
  8.         libmemcached-dev \
  9.         libz-dev \
  10.         libpq-dev \
  11.         libjpeg-dev \
  12.         libpng-dev \
  13.         libfreetype6-dev \
  14.         libssl-dev \
  15.         libmcrypt-dev \
  16.         openssh-server \
  17.         libmagickwand-dev \
  18.         cron \
  19.         nano \
  20.         libxml2-dev
  21.  
  22. #install some base extensions
  23. RUN apt-get install -y \
  24.         libzip-dev \
  25.         zip \
  26.   && docker-php-ext-configure zip --with-libzip \
  27.   && docker-php-ext-install zip
  28.  
  29. #####################################
  30. # Imagick:
  31. #####################################
  32.  
  33. RUN pecl install imagick && \
  34.     docker-php-ext-enable imagick
  35.  
  36. # Install the PHP mcrypt extention (from PECL, mcrypt has been removed from PHP 7.2)
  37. RUN pecl install mcrypt-1.0.1
  38. RUN docker-php-ext-enable mcrypt
  39.  
  40. # Install the PHP pdo_mysql extention
  41. RUN docker-php-ext-install pdo_mysql
  42.  
  43. # Install GD
  44. RUN docker-php-ext-configure gd \
  45.         --with-freetype-dir=/usr/include/ \
  46.         --with-jpeg-dir=/usr/include/
  47. RUN docker-php-ext-install gd
  48.  
  49. # Install GETTEXT
  50. RUN docker-php-ext-install gettext
Add Comment
Please, Sign In to add comment