mirror of
https://github.com/vimagick/dockerfiles.git
synced 2024-11-24 08:52:15 +02:00
24 lines
538 B
Docker
24 lines
538 B
Docker
#
|
|
# Dockerfile for statsd
|
|
#
|
|
|
|
FROM alpine
|
|
MAINTAINER kev <noreply@easypi.pro>
|
|
|
|
ENV STATSD_VERSION 0.8.0
|
|
ENV STATSD_URL https://github.com/etsy/statsd/archive/v$STATSD_VERSION.tar.gz
|
|
|
|
WORKDIR /app
|
|
|
|
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"]
|