fix(Dockerfile): ensure VERSION_TAG is correctly passed as a build argument

The VERSION_TAG label was not correctly set in the built image due to
a missing ARG definition in the Dockerfile. This commit adds ARG VERSION_TAG
so that the build argument can be properly passed and used in image labels.

Fixes #881
pull/887/head
Molham Al Nasr 2025-02-28 10:09:14 +01:00 committed by Bastien Wirtz
parent 12a004a9e1
commit 2a0387f90e
1 changed files with 2 additions and 0 deletions

View File

@ -17,6 +17,8 @@ RUN pnpm build
# production stage
FROM alpine:3.21
ARG VERSION_TAG
LABEL \
org.label-schema.schema-version="1.0" \
org.label-schema.version="$VERSION_TAG" \