-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
26 lines (22 loc) · 1.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# Set the base image as the .NET 6.0 SDK (this includes the runtime)
FROM mcr.microsoft.com/dotnet/sdk:6.0 as build-env
# Copy everything and publish the release (publish implicitly restores and builds)
WORKDIR /app
COPY . ./
RUN dotnet publish ./GenerateReleaseNotes/GenerateReleaseNotes.csproj -c Release -o out --no-self-contained
# Label the container
LABEL maintainer="Marcel de Vries <[email protected]>"
LABEL repository="https://github.com/XpiritCommunityEvents/GenerateReleaseNotes"
LABEL homepage="https://github.com/XpiritCommunityEvents/GenerateReleaseNotes"
# Label as GitHub action
LABEL com.github.actions.name="Generate Release Notes (used in HOL)"
# Limit to 160 characters
LABEL com.github.actions.description="This GitHub Action creates release notes and has some hidden gems used in the workshop"
# See branding:
# https://docs.github.com/actions/creating-actions/metadata-syntax-for-github-actions#branding
LABEL com.github.actions.icon="file-text"
LABEL com.github.actions.color="orange"
# Relayer the .NET SDK, anew with the build output
FROM mcr.microsoft.com/dotnet/sdk:6.0
COPY --from=build-env /app/out .
ENTRYPOINT [ "dotnet", "/GenerateReleaseNotes.dll" ]