mirror of
https://github.com/nicolargo/glances.git
synced 2024-12-26 02:31:36 +03:00
Fix Docker ARM build
This commit is contained in:
parent
661f8fb486
commit
76b73d807d
@ -5,21 +5,22 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
# Pull base image.
|
# Pull base image.
|
||||||
FROM easypi/alpine-arm
|
FROM python:2.7-alpine
|
||||||
|
|
||||||
# Install Glances (develop branch)
|
# Install Glances (develop branch)
|
||||||
RUN apk add python py2-psutil py2-bottle
|
RUN apk add --no-cache --virtual .build_deps \
|
||||||
RUN apk add git
|
gcc \
|
||||||
RUN git clone -b develop https://github.com/nicolargo/glances.git
|
musl-dev \
|
||||||
|
linux-headers \
|
||||||
|
&& pip install 'psutil>=5.4.7,<5.5.0' bottle==0.12.13 \
|
||||||
|
&& apk del .build_deps
|
||||||
|
RUN apk add --no-cache git && git clone -b develop https://github.com/nicolargo/glances.git
|
||||||
|
|
||||||
# Define working directory.
|
# Define working directory.
|
||||||
WORKDIR /glances
|
WORKDIR /glances
|
||||||
|
|
||||||
# EXPOSE PORT (For XMLRPC)
|
# EXPOSE PORT (For Web UI & XMLRPC)
|
||||||
EXPOSE 61209
|
EXPOSE 61208 61209
|
||||||
|
|
||||||
# EXPOSE PORT (For Web UI)
|
|
||||||
EXPOSE 61208
|
|
||||||
|
|
||||||
# Define default command.
|
# Define default command.
|
||||||
CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT
|
CMD python -m glances -C /glances/conf/glances.conf $GLANCES_OPT
|
||||||
|
Loading…
Reference in New Issue
Block a user