Dockerfile 476 B

123456789101112131415
  1. FROM debian:8
  2. run apt-get update && apt-get install -yq git nodejs npm
  3. RUN npm install -g n
  4. run apt-get install -yq wget
  5. RUN n stable
  6. RUN git clone https://github.com/etsy/statsd /opt/statsd
  7. RUN wget https://raw.githubusercontent.com/dynmeth/mongo-statsd-backend/master/lib/index.js -O /opt/statsd/backends/mongodb.js
  8. RUN cd /opt/statsd ; npm install --save mongodb
  9. RUN cd /opt/statsd ; npm install --save async
  10. CMD node /opt/statsd/stats.js /opt/config/statsd.config.js