Created
April 2, 2016 12:09
-
-
Save jpotier/bf174250753ba726246d9578ab5fe78e to your computer and use it in GitHub Desktop.
Dockerfile used to build a netdata container with netdata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM gliderlabs/alpine:latest | |
WORKDIR /myapp | |
COPY . /myapp | |
RUN apk-install zlib bash # Keeping this, the rest is just build-dep | |
RUN apk --update add --virtual build-dependencies build-base zlib-dev autoconf automake \ | |
&& cd netdata.git \ | |
&& addgroup -S netdata \ | |
&& adduser -S -G netdata -s /sbin/nologin -h / netdata \ | |
&& ./netdata-installer.sh --dont-wait --dont-start-it \ | |
&& apk del build-dependencies \ | |
&& rm -rf /myapp | |
EXPOSE 19999 | |
CMD ["/usr/sbin/netdata" "-ch" "/host" "-nd"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment