keboola/docker-demo-app

View on GitHub
docker/xdebug/Dockerfile

Summary

Maintainability
Test Coverage
FROM php:7.1-cli

WORKDIR /code

RUN apt-get update && apt-get install -y \
        git \
        unzip \
   --no-install-recommends && rm -r /var/lib/apt/lists/*

RUN curl -sS https://getcomposer.org/installer | php \
  && mv /code/composer.phar /usr/local/bin/composer

RUN pecl install xdebug \
  && docker-php-ext-enable xdebug

COPY . /code/
COPY ./docker/php/php.ini /usr/local/etc/php/php.ini
COPY ./docker/xdebug/xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini

RUN composer install