Set the version by reading directly the pyproject file in local (dev and Docker) - Related to #2956

This commit is contained in:
nicolargo 2024-10-23 23:12:55 +02:00
parent 68104b7d0f
commit 604d805828
2 changed files with 5 additions and 2 deletions

View File

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

View File

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