From 42c0a7b37bc694da8a642e23a12be5c45e21dab0 Mon Sep 17 00:00:00 2001 From: Maxwell Weru Date: Mon, 25 Sep 2023 09:03:39 +0300 Subject: [PATCH] Added docker labels for opencontainers --- Tingle.AzdoCleaner/Dockerfile | 3 +++ Tingle.AzdoCleaner/Dockerfile.CI | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/Tingle.AzdoCleaner/Dockerfile b/Tingle.AzdoCleaner/Dockerfile index 4daaee6..fb6df8b 100644 --- a/Tingle.AzdoCleaner/Dockerfile +++ b/Tingle.AzdoCleaner/Dockerfile @@ -5,6 +5,9 @@ WORKDIR /app EXPOSE 80 EXPOSE 443 +LABEL org.opencontainers.image.description="Cleanup tool for Azure resources based on Azure DevOps PRs" \ + org.opencontainers.image.source="https://github.com/tinglesoftware/azure-devops-cleaner.git" + FROM mcr.microsoft.com/dotnet/sdk:7.0-bullseye-slim AS build WORKDIR /src COPY ["Tingle.AzdoCleaner/Tingle.AzdoCleaner.csproj", "Tingle.AzdoCleaner/"] diff --git a/Tingle.AzdoCleaner/Dockerfile.CI b/Tingle.AzdoCleaner/Dockerfile.CI index e545bfb..bfa4b23 100644 --- a/Tingle.AzdoCleaner/Dockerfile.CI +++ b/Tingle.AzdoCleaner/Dockerfile.CI @@ -2,5 +2,9 @@ FROM mcr.microsoft.com/dotnet/aspnet:7.0-bullseye-slim AS base EXPOSE 80 EXPOSE 443 WORKDIR /app + +LABEL org.opencontainers.image.description="Cleanup tool for Azure resources based on Azure DevOps PRs" \ + org.opencontainers.image.source="https://github.com/tinglesoftware/azure-devops-cleaner.git" + COPY . . ENTRYPOINT ["dotnet", "Tingle.AzdoCleaner.dll"]