netdata-docker/Dockerfile

22 lines
459 B
Docker
Raw Permalink Normal View History

2020-02-05 09:48:15 +00:00
FROM debian:stretch
2020-02-05 09:35:11 +00:00
ADD scripts/build.sh /build.sh
ADD scripts/run.sh /run.sh
RUN chmod +x /run.sh /build.sh && sync && sleep 1 && /build.sh
2020-02-05 09:48:15 +00:00
RUN touch /etc/netdata/.opt-out-from-anonymous-statistics
2020-02-05 09:35:11 +00:00
WORKDIR /
2020-02-05 09:48:15 +00:00
ENV NETDATA_PORT=19999 SMTP_TLS=on SMTP_STARTTLS=on SMTP_SERVER=smtp.example.com SMTP_PORT=587 SMTP_FROM=localhost
2020-02-05 09:35:11 +00:00
2020-02-05 09:48:15 +00:00
# supposedly it now respects this
2020-02-05 09:35:11 +00:00
ENV DO_NOT_TRACK=1
EXPOSE $NETDATA_PORT
2020-02-05 09:48:15 +00:00
VOLUME /etc/netdata/override
2020-02-05 09:35:11 +00:00
ENTRYPOINT ["/run.sh"]