Skip to content

Instantly share code, notes, and snippets.

@jpotier
Created April 2, 2016 12:09
Show Gist options
  • Save jpotier/bf174250753ba726246d9578ab5fe78e to your computer and use it in GitHub Desktop.
Save jpotier/bf174250753ba726246d9578ab5fe78e to your computer and use it in GitHub Desktop.
Dockerfile used to build a netdata container with netdata
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