1
2
mirror of https://github.com/vimagick/dockerfiles synced 2024-06-26 00:38:37 +00:00
dockerfiles/statsd/Dockerfile

24 lines
549 B
Docker
Raw Normal View History

2017-06-28 10:03:57 +00:00
#
# Dockerfile for statsd
#
2020-08-25 09:39:13 +00:00
FROM alpine:3
MAINTAINER EasyPi Software Foundation
2017-06-28 10:03:57 +00:00
2020-08-25 09:39:13 +00:00
ENV STATSD_VERSION 0.8.6
2017-06-28 10:03:57 +00:00
ENV STATSD_URL https://github.com/etsy/statsd/archive/v$STATSD_VERSION.tar.gz
2019-06-05 11:06:43 +00:00
WORKDIR /opt/statsd
2017-06-28 10:03:57 +00:00
RUN set -xe \
&& apk add --no-cache ca-certificates curl nodejs nodejs-npm tar \
&& curl -sSL $STATSD_URL | tar xz --strip 1 \
&& npm install --production \
&& sed 's/graphite.example.com/graphite/' exampleConfig.js > config.js \
&& apk del curl tar
EXPOSE 8125/udp
EXPOSE 8126/tcp
CMD ["node", "stats.js", "config.js"]