mirror of https://github.com/nicolargo/glances.git
Set the version by reading directly the pyproject file in local (dev and Docker) - Related to #2956
This commit is contained in:
parent
68104b7d0f
commit
604d805828
|
|
@ -106,7 +106,7 @@ COPY ./glances/. /app/glances/
|
|||
|
||||
# Copy pyproject file in order to have the version
|
||||
# Note: Glances is not installed as a Pypi pkg in Docker
|
||||
COPY pyproject.toml /app
|
||||
COPY ./pyproject.toml /app
|
||||
|
||||
# Copy binary and update PATH
|
||||
COPY docker-bin.sh /usr/local/bin/glances
|
||||
|
|
|
|||
|
|
@ -87,7 +87,10 @@ ARG PYTHON_VERSION
|
|||
# Copy Glances source code and config file
|
||||
COPY ./docker-compose/glances.conf /etc/glances/glances.conf
|
||||
COPY ./glances/. /app/glances/
|
||||
COPY pyproject.toml /app
|
||||
|
||||
# Copy pyproject file in order to have the version
|
||||
# Note: Glances is not installed as a Pypi pkg in Docker
|
||||
COPY ./pyproject.toml /app
|
||||
|
||||
# Copy binary and update PATH
|
||||
COPY docker-bin.sh /usr/local/bin/glances
|
||||
|
|
|
|||
Loading…
Reference in New Issue