1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-27 02:09:06 +02:00
dockerfiles/statsd/Dockerfile

24 lines
545 B
Docker
Raw Normal View History

2017-06-28 12:03:57 +02:00
#
# Dockerfile for statsd
#
FROM alpine
MAINTAINER kev <noreply@easypi.pro>
2019-06-05 13:06:43 +02:00
ENV STATSD_VERSION 0.8.2
2017-06-28 12:03:57 +02:00
ENV STATSD_URL https://github.com/etsy/statsd/archive/v$STATSD_VERSION.tar.gz
2019-06-05 13:06:43 +02:00
WORKDIR /opt/statsd
2017-06-28 12:03:57 +02: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"]