From 0947b88d36bb2adae904fa38f738a4dae6d75948 Mon Sep 17 00:00:00 2001 From: Kevin Papst Date: Sun, 4 Aug 2024 16:43:46 +0200 Subject: [PATCH] added OCI docker labels (#4996) --- .docker/Dockerfile.kimai-base | 2 -- Dockerfile | 12 +++++++++++- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.docker/Dockerfile.kimai-base b/.docker/Dockerfile.kimai-base index e5e46ede..1413b7d1 100644 --- a/.docker/Dockerfile.kimai-base +++ b/.docker/Dockerfile.kimai-base @@ -167,8 +167,6 @@ HEALTHCHECK --interval=20s --timeout=10s --retries=3 \ FROM ${BASE}-base AS base ARG TIMEZONE -LABEL maintainer="tobias@neontribe.co.uk" - ENV TIMEZONE=${TIMEZONE} RUN ln -snf /usr/share/zoneinfo/${TIMEZONE} /etc/localtime && echo ${TIMEZONE} > /etc/timezone && \ # make composer home dir diff --git a/Dockerfile b/Dockerfile index b091769c..62238560 100644 --- a/Dockerfile +++ b/Dockerfile @@ -47,7 +47,17 @@ FROM ${BASE}-base AS base ARG KIMAI ARG TIMEZONE -LABEL maintainer="tobias@neontribe.co.uk" +LABEL org.opencontainers.image.title="Kimai" \ + org.opencontainers.image.description="Kimai is a time-tracking application." \ + org.opencontainers.image.authors="Kimai Community" \ + org.opencontainers.image.url="https://www.kimai.org/" \ + org.opencontainers.image.documentation="https://www.kimai.org/documentation/" \ + org.opencontainers.image.source="https://github.com/kimai/kimai" \ + org.opencontainers.image.version="${KIMAI}" \ + org.opencontainers.image.revision="${{github.sha}}" \ + org.opencontainers.image.vendor="Kevin Papst" \ + org.opencontainers.image.licenses="AGPL-3.0" \ + org.opencontainers.image.base.name="docker.io/library/alpine" ENV KIMAI=${KIMAI} ENV TIMEZONE=${TIMEZONE}