mirror of
https://github.com/nicolargo/glances.git
synced 2024-08-16 16:00:27 +03:00
Add glances binary to '/usr/local/bin' + Update ENV PATH to include '/venv/bin' in Dockerfiles - Reported from devel branch #2419
This commit is contained in:
parent
87b8300cc6
commit
40fd7fe7c7
@ -15,3 +15,6 @@
|
||||
|
||||
# Include Config file
|
||||
!/docker-compose/glances.conf
|
||||
|
||||
# Include Binary file
|
||||
!/docker-bin.sh
|
||||
|
3
docker-bin.sh
Normal file
3
docker-bin.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/sh
|
||||
|
||||
/venv/bin/python3 -m glances $@
|
@ -86,6 +86,10 @@ FROM base as release
|
||||
COPY ./docker-compose/glances.conf /etc/glances.conf
|
||||
COPY /glances /app/glances
|
||||
|
||||
# Copy binary and update PATH
|
||||
COPY docker-bin.sh /usr/local/bin/glances
|
||||
ENV PATH="/venv/bin:$PATH"
|
||||
|
||||
# EXPOSE PORT (XMLRPC / WebUI)
|
||||
EXPOSE 61209 61208
|
||||
|
||||
|
@ -80,6 +80,10 @@ FROM base as release
|
||||
COPY ./docker-compose/glances.conf /etc/glances.conf
|
||||
COPY /glances /app/glances
|
||||
|
||||
# Copy binary and update PATH
|
||||
COPY docker-bin.sh /usr/local/bin/glances
|
||||
ENV PATH="/venv/bin:$PATH"
|
||||
|
||||
# EXPOSE PORT (XMLRPC / WebUI)
|
||||
EXPOSE 61209 61208
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user