Skip to content

Commit a6c0cb0

Browse files
committed
add datadog php profiler
1 parent ef133bb commit a6c0cb0

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Dockerfile

+7-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ RUN DEBIAN_FRONTEND=noninteractive apt update \
1313
&& useradd --system --non-unique --uid ${PUID} --gid ${PGID} \
1414
--no-create-home --home-dir / --shell /usr/sbin/nologin abc \
1515
&& apt -y install --no-install-recommends \
16-
cron supervisor tzdata ca-certificates software-properties-common gpg-agent \
16+
curl cron supervisor tzdata ca-certificates software-properties-common gpg-agent \
1717
&& apt-add-repository ppa:ondrej/php \
1818
&& echo "TZ=${TZ}" >> /etc/environment \
1919
&& echo "${TZ}" > /etc/timezone \
@@ -33,6 +33,12 @@ RUN DEBIAN_FRONTEND=noninteractive apt purge -y software-properties-common gpg-a
3333
&& apt clean \
3434
&& rm -rf /etc/cron.*/*
3535

36+
# Install datadog
37+
RUN curl -sLO https://github.com/DataDog/dd-trace-php/releases/latest/download/datadog-setup.php \
38+
&& php datadog-setup.php --php-bin=all --enable-appsec --enable-profiling \
39+
&& rm -f datadog-setup.php
40+
ENV DD_TRACE_CLI_ENABLED=1
41+
3642
LABEL org.opencontainers.image.source = "https://github.com/Notifiarr/cron-docker"
3743

3844
COPY supervisor /etc/supervisor

0 commit comments

Comments
 (0)