daily pastebin goal
28%
SHARE
TWEET

Untitled

a guest Dec 19th, 2018 54 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. diff --git a/Dockerfile b/Dockerfile
  2. index 9abc4e0..75e23f1 100644
  3. --- a/Dockerfile
  4. +++ b/Dockerfile
  5. @@ -1,4 +1,4 @@
  6. -FROM php:7.0-apache
  7. +FROM php:7.2-apache
  8.  
  9.  RUN apt-get update
  10.  
  11. @@ -10,5 +10,15 @@ RUN echo "fi_FI.UTF-8 UTF-8" >> /etc/locale.gen
  12.  RUN echo "sv_SE.UTF-8 UTF-8" >> /etc/locale.gen
  13.  RUN locale-gen
  14.  
  15. +RUN yes | pecl install xdebug && docker-php-ext-enable xdebug \
  16. +      && echo "zend_extension=$(find /usr/local/lib/php/extensions/ -name xdebug.so)" >> /usr/local/etc/php/php.ini  \
  17. +      && echo "xdebug.remote_port=9000" >> /usr/local/etc/php/php.ini \
  18. +      && echo "xdebug.remote_enable=1" >> /usr/local/etc/php/php.ini \
  19. +      && echo "xdebug.remote_connect_back=0" >> /usr/local/etc/php/php.ini \
  20. +      && echo "xdebug.remote_host=docker.for.mac.localhost" >> /usr/local/etc/php/php.ini \
  21. +      && echo "xdebug.idekey=IDEA_DEBUG" >> /usr/local/etc/php/php.ini \
  22. +      && echo "xdebug.remote_autostart=1" >> /usr/local/etc/php/php.ini \
  23. +      && echo "xdebug.remote_log=/tmp/xdebug.log" >> /usr/local/etc/php/php.ini
  24. +
  25.  RUN a2enmod rewrite
  26.  RUN docker-php-ext-install gettext
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