-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (15 loc) · 755 Bytes
/
Dockerfile
File metadata and controls
19 lines (15 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# Set the base image as the .NET 8.0 SDK (this includes the runtime)
FROM mcr.microsoft.com/dotnet/sdk:8.0 as build-env
# Copy everything and publish the release (publish implicitly restores and builds)
COPY . ./
RUN dotnet publish ./VersionMiner/VersionMiner.csproj -c Release -o out --no-self-contained
# Label the container
LABEL maintainer="Calvin Wilkinson <kinsondigital@gmail.com>"
LABEL repository="https://github.com/KinsonDigital/VersionMiner"
LABEL homepage="https://github.com/KinsonDigital/VersionMiner"
# Label as GitHub action
LABEL com.github.actions.name="Version Miner"
# Relayer the .NET SDK, anew with the build output
FROM mcr.microsoft.com/dotnet/sdk:8.0
COPY --from=build-env /out .
ENTRYPOINT [ "dotnet", "/VersionMiner.dll" ]