Signed-off-by: Jessica Frazelle <acidburn@docker.com>
This commit is contained in:
Jessica Frazelle
2015-08-15 19:02:39 -07:00
parent f6a13eb04e
commit a533c437a5

View File

@@ -2,22 +2,29 @@
# https://github.com/nicolargo/glances # https://github.com/nicolargo/glances
# #
# docker run --rm -it \ # docker run --rm -it \
# --pid host \ # --pid host \
# --ipc host \ # --ipc host \
# --net host \ # --net host \
# --privileged \ # --name glances \
# --name glances \ # jess/glances
# infoslack/glances
FROM python:latest FROM alpine:latest
MAINTAINER Daniel Romero <infoslack@gmail.com>
ENV VERSION 2.4.2 ENV GLANCES_VERSION 2.4.2
RUN curl -L "https://github.com/nicolargo/glances/archive/v${VERSION}.tar.gz" \ RUN apk update && apk add \
-o glances.tar.gz \ ca-certificates \
&& tar -zxvf glances.tar.gz curl \
gcc \
python \
py-pip \
&& rm -rf /var/cache/apk/*
WORKDIR glances-$VERSION RUN curl -L "https://github.com/nicolargo/glances/archive/v${GLANCES_VERSION}.tar.gz" -o /tmp/glances.tar.gz \
RUN python setup.py install && 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
CMD [ "glances" ] ENTRYPOINT [ "glances" ]