From c43884bdfb044ac1689ed79dcd7946f30076d9ec Mon Sep 17 00:00:00 2001
From: Marc Guillemot <guillemot@lat-lon.de>
Date: Tue, 5 Dec 2023 08:44:31 +0100
Subject: [PATCH] XPLANBOX-2549 add missing docker labels

---
 xplan-webapps/xplan-root/Dockerfile | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

diff --git a/xplan-webapps/xplan-root/Dockerfile b/xplan-webapps/xplan-root/Dockerfile
index f0817e221..0949101e1 100644
--- a/xplan-webapps/xplan-root/Dockerfile
+++ b/xplan-webapps/xplan-root/Dockerfile
@@ -1,5 +1,21 @@
 FROM httpd:2.4.58-alpine
+ARG BUILD_DATE=?
+ARG DOCKER_IMAGE_NAME=?
+ARG GIT_REVISION=?
+ARG WEB_CONTEXT=ROOT
+ARG XPLANBOX_VERSION=latest
+
+# see https://github.com/opencontainers/image-spec/blob/main/annotations.md#pre-defined-annotation-keys
+LABEL "org.opencontainers.image.created"="$BUILD_DATE" \
+	"org.opencontainers.image.description"="ozgxplanung xPlanBox component" \
+	"org.opencontainers.image.licenses"="GNU Affero General Public License & others" \
+	"org.opencontainers.image.ref.name"="$DOCKER_IMAGE_NAME" \
+	"org.opencontainers.image.revision"="$GIT_REVISION" \
+	"org.opencontainers.image.title"="ozgxplanung - $DOCKER_IMAGE_NAME" \
+	"org.opencontainers.image.url"="https://gitlab.opencode.de/diplanung/ozgxplanung" \
+	"org.opencontainers.image.vendor"="lat/lon GmbH" \
+	"org.opencontainers.image.version"="$XPLANBOX_VERSION"
 
 ENV TZ=Europe/Berlin
 
-COPY target/xplan-root-*-default /usr/local/apache2/htdocs/
\ No newline at end of file
+COPY target/xplan-root-*-default /usr/local/apache2/htdocs/
-- 
GitLab