add and update version to docker image

This commit is contained in:
Karl 2025-07-10 17:08:58 +01:00
parent 43ce8e1b89
commit ab32c8032c
2 changed files with 9 additions and 0 deletions

View File

@ -2,6 +2,11 @@
current_version = "0.2.11"
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
serialize = ["{major}.{minor}.{patch}"]
[[tool.bumpversion.files]]
filename = "Dockerfile"
search = 'ARG VERSION="{current_version}"'
replace = 'ARG VERSION="{new_version}"'
search = "{current_version}"
replace = "{new_version}"
regex = false

View File

@ -3,9 +3,13 @@ FROM python:3.11-slim
# Set the working directory in the container
WORKDIR /app
# Set version label
ARG VERSION="0.2.11"
LABEL version=$VERSION
# Copy project files into the container
COPY . /app
# Install dependencies
RUN pip install --no-cache-dir -r requirements.txt