Skip to content

Commit

Permalink
Added docker labels for opencontainers
Browse files Browse the repository at this point in the history
  • Loading branch information
mburumaxwell committed Sep 25, 2023
1 parent e7c514e commit 42c0a7b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Tingle.AzdoCleaner/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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/"]
Expand Down
4 changes: 4 additions & 0 deletions Tingle.AzdoCleaner/Dockerfile.CI
Original file line number Diff line number Diff line change
Expand Up @@ -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"]

0 comments on commit 42c0a7b

Please sign in to comment.