mirror of
https://github.com/karl0ss/ai_image_frame_server.git
synced 2025-07-14 01:46:06 +01:00
add and update version to docker image
This commit is contained in:
parent
43ce8e1b89
commit
ab32c8032c
@ -2,6 +2,11 @@
|
|||||||
current_version = "0.2.11"
|
current_version = "0.2.11"
|
||||||
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
parse = "(?P<major>\\d+)\\.(?P<minor>\\d+)\\.(?P<patch>\\d+)"
|
||||||
serialize = ["{major}.{minor}.{patch}"]
|
serialize = ["{major}.{minor}.{patch}"]
|
||||||
|
|
||||||
|
[[tool.bumpversion.files]]
|
||||||
|
filename = "Dockerfile"
|
||||||
|
search = 'ARG VERSION="{current_version}"'
|
||||||
|
replace = 'ARG VERSION="{new_version}"'
|
||||||
search = "{current_version}"
|
search = "{current_version}"
|
||||||
replace = "{new_version}"
|
replace = "{new_version}"
|
||||||
regex = false
|
regex = false
|
||||||
|
@ -3,9 +3,13 @@ FROM python:3.11-slim
|
|||||||
|
|
||||||
# Set the working directory in the container
|
# Set the working directory in the container
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
# Set version label
|
||||||
|
ARG VERSION="0.2.11"
|
||||||
|
LABEL version=$VERSION
|
||||||
|
|
||||||
# Copy project files into the container
|
# Copy project files into the container
|
||||||
COPY . /app
|
COPY . /app
|
||||||
|
|
||||||
|
|
||||||
# Install dependencies
|
# Install dependencies
|
||||||
RUN pip install --no-cache-dir -r requirements.txt
|
RUN pip install --no-cache-dir -r requirements.txt
|
||||||
|
Loading…
x
Reference in New Issue
Block a user