versionsweeper/Dockerfile

22 строки
893 B
Docker

FROM mcr.microsoft.com/dotnet/sdk:9.0 AS build-env
# Copy everything and restore
WORKDIR /app
COPY . ./
RUN dotnet publish ./src/DotNet.VersionSweeper/DotNet.VersionSweeper.csproj -c Release -o out --no-self-contained
# Label the container
LABEL maintainer="David Pine <david.pine@microsoft.com>"
LABEL repository="https://github.com/dotnet/versionsweeper"
LABEL homepage="https://github.com/dotnet/versionsweeper"
LABEL com.github.actions.name=".NET version sweeper"
LABEL com.github.actions.description="A Github action that scans .NET projects, and creates issues that report versions that are not within long term support."
LABEL com.github.actions.icon="alert-circle"
LABEL com.github.actions.color="yellow"
# Build the runtime image
FROM mcr.microsoft.com/dotnet/runtime:9.0
COPY --from=build-env /app/out .
ENTRYPOINT [ "dotnet", "/DotNet.VersionSweeper.dll" ]