dockerfiles/glances/Dockerfile

31 lines
696 B
Docker
Raw Normal View History

2015-08-06 06:16:31 +02:00
# Run glances in a container
# https://github.com/nicolargo/glances
#
# docker run --rm -it \
# --pid host \
# --ipc host \
# --net host \
# --name glances \
# jess/glances
2015-08-06 06:16:31 +02:00
FROM alpine:latest
2015-08-06 06:16:31 +02:00
ENV GLANCES_VERSION 2.4.2
RUN apk update && apk add \
ca-certificates \
curl \
gcc \
python \
py-pip \
&& rm -rf /var/cache/apk/*
2015-08-06 06:16:31 +02:00
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
2015-08-06 06:16:31 +02:00
ENTRYPOINT [ "glances" ]