Skip to content

Commit

Permalink
Set the version by reading directly the pyproject file in local (dev …
Browse files Browse the repository at this point in the history
…and Docker) - Related to #2956
  • Loading branch information
nicolargo committed Oct 23, 2024
1 parent 68104b7 commit 604d805
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-files/alpine.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 4 additions & 1 deletion docker-files/ubuntu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 604d805

Please sign in to comment.