dockerfiles/glances/Dockerfile
Jessica Frazelle a533c437a5 cleanup
Signed-off-by: Jessica Frazelle <acidburn@docker.com>
2015-08-15 19:11:41 -07:00

31 lines
696 B
Docker

# Run glances in a container
# https://github.com/nicolargo/glances
#
# docker run --rm -it \
# --pid host \
# --ipc host \
# --net host \
# --name glances \
# jess/glances
FROM alpine:latest
ENV GLANCES_VERSION 2.4.2
RUN apk update && apk add \
ca-certificates \
curl \
gcc \
python \
py-pip \
&& rm -rf /var/cache/apk/*
RUN curl -L "https://github.com/nicolargo/glances/archive/v${GLANCES_VERSION}.tar.gz" -o /tmp/glances.tar.gz \
&& mkdir -p /usr/src/glances \
&& tar -xzf /tmp/glances.tar.gz -C /usr/src/glances \
&& rm /tmp/glances.tar.gz* \
&& cd /usr/src/glances/glances-${GLANCES_VERSION} \
&& python setup.py install \
&& rm -rf /usr/src/glances
ENTRYPOINT [ "glances" ]