1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-11-24 08:52:15 +02:00
dockerfiles/statsd/Dockerfile

24 lines
554 B
Docker
Raw Normal View History

2017-06-28 12:03:57 +02:00
#
# Dockerfile for statsd
#
2020-08-25 11:39:13 +02:00
FROM alpine:3
MAINTAINER EasyPi Software Foundation
2017-06-28 12:03:57 +02:00
2023-04-07 12:01:59 +02:00
ARG STATSD_VERSION=0.9.0
ARG STATSD_URL=https://github.com/statsd/statsd/archive/refs/tags/v$STATSD_VERSION.tar.gz
2017-06-28 12:03:57 +02:00
2019-06-05 13:06:43 +02:00
WORKDIR /opt/statsd
2017-06-28 12:03:57 +02:00
RUN set -xe \
2021-11-11 11:14:06 +02:00
&& apk add --no-cache ca-certificates curl nodejs npm tar \
2017-06-28 12:03:57 +02:00
&& 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"]