mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-22 08:41:32 +03:00
9389a0a865
Need to initialize the apt repos with `apt-get update`. Since you're maintaining your own install script and not installing cleanly here, we should break the system apart so that we're clearing the apt cache properly.
26 lines
576 B
Docker
26 lines
576 B
Docker
#
|
|
# Glances Dockerfile
|
|
#
|
|
# https://github.com/nicolargo/glances
|
|
#
|
|
|
|
# Pull base image.
|
|
FROM ubuntu
|
|
|
|
# Install Glances (develop branch)
|
|
RUN apt-get update && apt-get -y install curl && rm -rf /var/lib/apt/lists/*
|
|
RUN curl -L https://raw.githubusercontent.com/nicolargo/glancesautoinstall/master/install-develop.sh | /bin/bash && rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
# Define working directory.
|
|
WORKDIR /glances
|
|
|
|
# EXPOSE PORT (For XMLRPC)
|
|
EXPOSE 61209
|
|
|
|
# EXPOSE PORT (For Web UI)
|
|
EXPOSE 61208
|
|
|
|
# Define default command.
|
|
CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT
|