-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 806 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 806 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM alpine:3.23.3
LABEL maintainer="Riddhesh Sanghvi <riddhesh237@gmail.com>"
LABEL org.label-schema.schema-version="1.0.0"
LABEL org.label-schema.vendor="EasyEngine"
LABEL org.label-schema.name="newrelic-daemon"
ENV NR_PORT=/run/newrelic/newrelic.sock
RUN set -ex; \
apk --no-cache add curl; \
export NR_FILE_URL="https://download.newrelic.com$(curl -s https://download.newrelic.com/php_agent/release/ | grep 'linux-musl.tar.gz' | sed 's/.*"\(.*\)".*/\1/')"; \
curl --connect-timeout 10 -o nr.tar.gz -fSL $NR_FILE_URL; \
tar -xf nr.tar.gz; \
cp newrelic-php5-*/daemon/newrelic-daemon.x64 /usr/local/bin/newrelic-daemon; \
mkdir -p /var/log/newrelic /run/newrelic; \
rm -rf newrelic-php5* nr.tar.gz;
CMD ["sh", "-c", "/usr/local/bin/newrelic-daemon -f --port ${NR_PORT}"]