1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-04 10:35:07 +02:00
dockerfiles/netdata/Dockerfile

46 lines
1.2 KiB
Docker
Raw Normal View History

2016-06-21 03:23:08 +02:00
#
# Dockerfile for netdata
#
FROM alpine
2017-05-22 09:20:46 +02:00
MAINTAINER EasyPi Software Foundation
2016-06-21 03:23:08 +02:00
2017-05-21 17:06:12 +02:00
ENV NETDATA_VERSION 1.6.0
2016-06-21 03:23:08 +02:00
RUN set -xe \
&& apk add --no-cache autoconf \
automake \
bash \
build-base \
curl \
2017-05-22 09:20:46 +02:00
nodejs \
2017-07-10 11:02:16 +02:00
nodejs-npm \
2017-05-22 09:20:46 +02:00
python \
2016-06-21 03:23:08 +02:00
libmnl \
libmnl-dev \
libuuid \
util-linux-dev \
2017-05-22 09:20:46 +02:00
zlib \
2016-06-21 03:23:08 +02:00
zlib-dev \
&& addgroup -g 1000 netdata \
&& adduser -D -H -u 1000 -G netdata netdata \
&& curl -sSL https://github.com/firehol/netdata/releases/download/v$NETDATA_VERSION/netdata-$NETDATA_VERSION.tar.gz | tar xz \
&& cd netdata-$NETDATA_VERSION \
2017-05-22 09:20:46 +02:00
&& ./netdata-installer.sh --dont-start-it --dont-wait \
2016-06-21 03:23:08 +02:00
&& cd .. \
&& rm -rf netdata-$NETDATA_VERSION \
&& apk del autoconf \
automake \
build-base \
libmnl-dev \
util-linux-dev \
zlib-dev
2017-05-21 17:37:03 +02:00
VOLUME /etc/netdata
2017-05-22 09:20:46 +02:00
USER netdata
2016-06-21 03:23:08 +02:00
EXPOSE 19999
2017-05-22 00:50:13 +02:00
CMD ["netdata", "-D"]