github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/examples/php/Dockerfile (about) 1 FROM php:7.3.27 2 3 WORKDIR /var/www/html 4 5 COPY --from=pyroscope/pyroscope:latest /usr/bin/pyroscope /usr/bin/pyroscope 6 COPY main.php ./main.php 7 8 ENV PYROSCOPE_APPLICATION_NAME=simple.php.app 9 ENV PYROSCOPE_SERVER_ADDRESS=http://pyroscope:4040/ 10 ENV PYROSCOPE_LOG_LEVEL=debug 11 12 RUN adduser --disabled-password --gecos --quiet pyroscope 13 USER pyroscope 14 15 CMD ["pyroscope", "exec", "php", "main.php"]