From 604d805828796a40ed29a6244f67b80684ba8d07 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Wed, 23 Oct 2024 23:12:55 +0200 Subject: [PATCH] Set the version by reading directly the pyproject file in local (dev and Docker) - Related to #2956 --- docker-files/alpine.Dockerfile | 2 +- docker-files/ubuntu.Dockerfile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/docker-files/alpine.Dockerfile b/docker-files/alpine.Dockerfile index 553708697..f5c9a9aea 100644 --- a/docker-files/alpine.Dockerfile +++ b/docker-files/alpine.Dockerfile @@ -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 diff --git a/docker-files/ubuntu.Dockerfile b/docker-files/ubuntu.Dockerfile index d81d4a4d4..60a80045e 100644 --- a/docker-files/ubuntu.Dockerfile +++ b/docker-files/ubuntu.Dockerfile @@ -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