Dockerfile.tideways_v5_php73 635 B

1234567891011121314151617181920212223242526
  1. FROM php:7.3-cli
  2. RUN apt-get update && apt-get install -y graphviz && apt-get clean
  3. RUN curl "https://github.com/tideways/php-xhprof-extension/archive/v5.0.2.tar.gz" -fsL -o ./a.tar.gz && \
  4. tar xf ./a.tar.gz && \
  5. ls -la && cd ./php-xhprof-extension-5.0.2 && \
  6. ls -la && \
  7. phpize && \
  8. ./configure && \
  9. make && \
  10. make install && \
  11. cd .. && rm -rf ./a.tar.gz ./php-xhprof-extension-5.0.2 && \
  12. docker-php-ext-enable tideways_xhprof
  13. COPY ./prepend_v5.php /prepend.php
  14. COPY ./php.ini /usr/local/etc/php/
  15. COPY ./xhprof/xhprof_lib/utils /utils
  16. ENV SVG=$SVG
  17. ENV REPORT=$REPORT
  18. WORKDIR /code