SHARE
TWEET

Untitled

a guest Oct 14th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Utilizando a versão oficial com PHP versão 7.3.6 e Apache
  2. FROM php:7.3.6-apache-stretch
  3.  
  4. # Habilitando o modo de reescrita do Apache
  5. RUN a2enmod rewrite
  6.  
  7. # Instalação de extensões básicas do PHP
  8. # Qualquer nova extensão pode ser adiconada aqui
  9. # OBS* Utilizar sempre o docker-php-ext-install quando possível ao invés de apt-get,
  10. # pois ele instala e configura as extensões baixadas
  11. RUN docker-php-ext-install pdo pdo_mysql
  12.  
  13. RUN yes | pecl install xdebug \
  14.     && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" > /usr/local/etc/php/conf.d/xdebug.ini \
  15.     && echo "xdebug.remote_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
  16.     && echo "xdebug.remote_handler=dbgp" >>  /usr/local/etc/php/conf.d/xdebug.ini \
  17.     && echo "xdebug.remote_port=9000" >> /usr/local/etc/php/conf.d/xdebug.ini \
  18.     && echo "xdebug.remote_autostart=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
  19.     && echo "xdebug.remote_connect_back=on" >> /usr/local/etc/php/conf.d/xdebug.ini \
  20.     && echo "xdebug.idekey=docker" >> /usr/local/etc/php/conf.d/xdebug.ini \
  21.     && echo "xdebug.remote_log=/var/log/xdebug.log" >> /usr/local/etc/php/conf.d/xdebug.ini \
  22.     && echo "xdebug.default_enable=on" >> /usr/local/etc/php/conf.d/xdebug.ini
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top