-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
25 lines (21 loc) · 1.12 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
# Set the base image as the .NET 5.0 SDK (this includes the runtime)
FROM mcr.microsoft.com/dotnet/sdk:5.0 as build-env
# Copy everything and publish the release (publish implicitly restores and builds)
COPY . ./
RUN dotnet publish ./CSharpProjectToUnity3dPackage/CSharpProjectToUnity3dPackage.csproj -c Release -o out --no-self-contained
# Label the container
LABEL maintainer="Pere Viader <[email protected]>"
LABEL repository="https://github.com/PereViader/CSharpProjectToUnity3dPackage"
LABEL homepage="https://github.com/PereViader/CSharpProjectToUnity3dPackage"
# Label as GitHub action
LABEL com.github.actions.name="CSharp Project To Unity3d Package"
# Limit to 160 characters
LABEL com.github.actions.description="Convert a c# project into a unity 3d package"
# See branding:
# https://docs.github.com/actions/creating-actions/metadata-syntax-for-github-actions#branding
LABEL com.github.actions.icon="activity"
LABEL com.github.actions.color="white"
# Relayer the .NET SDK, anew with the build output
FROM mcr.microsoft.com/dotnet/sdk:5.0
COPY --from=build-env /out .
ENTRYPOINT [ "dotnet", "/CSharpProjectToUnity3dPackage.dll" ]