mirror of https://github.com/nicolargo/glances.git
Add Alpine based container
This commit is contained in:
parent
f5eede0c26
commit
82848384da
|
|
@ -0,0 +1,25 @@
|
|||
#
|
||||
# Glances Dockerfile based on Alpine OS
|
||||
#
|
||||
# https://github.com/nicolargo/glances
|
||||
#
|
||||
|
||||
# Pull base image.
|
||||
FROM alpine
|
||||
|
||||
# Install Glances (develop branch)
|
||||
RUN apk add python py2-psutil py2-bottle
|
||||
RUN apk add git
|
||||
RUN git clone -b develop https://github.com/nicolargo/glances.git
|
||||
|
||||
# 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
|
||||
|
|
@ -1,18 +1,16 @@
|
|||
#
|
||||
# Glances Dockerfile for ARM
|
||||
# Glances Dockerfile for ARM (based on Alpine ARM)
|
||||
#
|
||||
# https://github.com/nicolargo/glances
|
||||
#
|
||||
|
||||
# Pull base image.
|
||||
FROM alpine
|
||||
FROM easypi/alpine-arm
|
||||
|
||||
# Install Glances (develop branch)
|
||||
RUN apk add python py2-psutil py2-bottle
|
||||
RUN apk add git
|
||||
RUN git clone https://github.com/nicolargo/glances.git
|
||||
RUN cd /glances
|
||||
RUN git checkout develop
|
||||
RUN git clone -b develop https://github.com/nicolargo/glances.git
|
||||
|
||||
# Define working directory.
|
||||
WORKDIR /glances
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Glances Dockerfile
|
||||
# Glances Dockerfile based on Ubuntu OS
|
||||
#
|
||||
# https://github.com/nicolargo/glances
|
||||
#
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
#
|
||||
# Glances Dockerfile
|
||||
# Glances Dockerfile (based on Ubuntu)
|
||||
#
|
||||
# https://github.com/nicolargo/glances
|
||||
#
|
||||
|
|
|
|||
Loading…
Reference in New Issue