Add Alpine based container

This commit is contained in:
nicolargo 2018-09-15 22:47:08 +02:00
parent f5eede0c26
commit 82848384da
4 changed files with 30 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -1,5 +1,5 @@
#
# Glances Dockerfile
# Glances Dockerfile based on Ubuntu OS
#
# https://github.com/nicolargo/glances
#

View File

@ -1,5 +1,5 @@
#
# Glances Dockerfile
# Glances Dockerfile (based on Ubuntu)
#
# https://github.com/nicolargo/glances
#