Dockerfile 483 B

123456789101112131415161718
  1. FROM php:7.2-cli
  2. RUN curl "https://github.com/tideways/php-profiler-extension/archive/v4.1.4.tar.gz" -fsL -o ./a.tar.gz && \
  3. tar xf ./a.tar.gz && \
  4. cd ./php-profiler-extension-4.1.4 && \
  5. ls -la && \
  6. phpize && \
  7. ./configure && \
  8. make && \
  9. make install && \
  10. cd .. && rm -rf ./a.tar.gz ./php-profiler-extension-4.1.4 && \
  11. docker-php-ext-enable tideways
  12. COPY ./prepend_v4.php /prepend.php
  13. COPY ./php.ini /usr/local/etc/php/
  14. WORKDIR /code