<reponame>bnymn/apixu-php
FROM php:7.2-cli-alpine3.8

RUN curl -s http://getcomposer.org/installer | php && \
    mv composer.phar /usr/local/bin/composer && \
    apk add --update --no-cache make alpine-sdk autoconf && \
    pecl install xdebug && \
    docker-php-ext-enable xdebug && \
    apk del alpine-sdk autoconf  

COPY dev/dev.ini /usr/local/etc/php/conf.d/z-dev.ini

WORKDIR /qa
COPY dev/composer.json composer.json
RUN composer global require hirak/prestissimo
RUN composer install

WORKDIR /src
