marcelorocha

Untitled

Nov 26th, 2020
534
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM php:5.6-fpm
  2.  
  3. WORKDIR /var/www/html
  4.  
  5. RUN apt-get update \
  6.     && apt-get install -y --no-install-recommends \
  7.     libfreetype6-dev \
  8.     libjpeg62-turbo-dev \
  9.     apt-utils \
  10.     libicu-dev \
  11.     zlib1g-dev \
  12.     libpq-dev \
  13.     libzip-dev \
  14.     libpcre3-dev \
  15.     libpng-dev \
  16.     freetds-dev \
  17.     freetds-bin \
  18.     freetds-common \
  19.     libdbd-freetds \
  20.     libsybdb5 \
  21.     libqt4-sql-tds \
  22.     libqt5sql5-tds \   
  23.     vim cron zip curl git \
  24.     && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.so /usr/lib/libsybdb.so \
  25.     && ln -s /usr/lib/x86_64-linux-gnu/libsybdb.a /usr/lib/libsybdb.a \
  26.     && docker-php-ext-install mysqli pgsql mssql pdo pdo_mysql pdo_pgsql opcache intl gd mbstring zip \
  27.     && docker-php-ext-configure gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ \
  28.     && docker-php-ext-configure mssql \
  29.     && docker-php-ext-install gd
  30.    
  31. RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
  32.  
  33. # XDEBUG
  34. #RUN  apt-get install -y php5-xdebug
  35. #COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
  36.  
  37. #CONFIGURAÇÕES EXTRAS
  38. COPY ./custom.ini /usr/local/etc/php/conf.d/custom.ini
  39.  
  40. RUN groupadd -g 1000 www
  41. RUN useradd -u 1000 -ms /bin/bash -g www www
RAW Paste Data