File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 target : runtime-deps
4545 build-args : VERSION=${{github.event.inputs.base-image-tag}}
4646 tags : |
47- robonet/dotnet-scratch:runtime-deps-latest
4847 robonet/dotnet-scratch:runtime-deps-${{github.event.inputs.publish-major-version}}
4948 robonet/dotnet-scratch:runtime-deps-${{github.event.inputs.publish-version}}
5049 - name : Build and push runtime-deps-globalization
5756 target : runtime-deps-globalization
5857 build-args : VERSION=${{github.event.inputs.base-image-tag}}
5958 tags : |
60- robonet/dotnet-scratch:runtime-deps-globalization-latest
6159 robonet/dotnet-scratch:runtime-deps-globalization-${{github.event.inputs.publish-major-version}}
6260 robonet/dotnet-scratch:runtime-deps-globalization-${{github.event.inputs.publish-version}}
6361 - name : Build and push aspnet
7068 target : aspnet
7169 build-args : VERSION=${{github.event.inputs.base-image-tag}}
7270 tags : |
73- robonet/dotnet-scratch:aspnet-latest
7471 robonet/dotnet-scratch:aspnet-${{github.event.inputs.publish-major-version}}
7572 robonet/dotnet-scratch:aspnet-${{github.event.inputs.publish-version}}
7673 - name : Build and push aspnet-globalization
8380 target : aspnet-globalization
8481 build-args : VERSION=${{github.event.inputs.base-image-tag}}
8582 tags : |
86- robonet/dotnet-scratch:aspnet-globalization-latest
8783 robonet/dotnet-scratch:aspnet-globalization-${{github.event.inputs.publish-major-version}}
8884 robonet/dotnet-scratch:aspnet-globalization-${{github.event.inputs.publish-version}}
Original file line number Diff line number Diff line change 11# dotnet-scratch
22Docker image for dotnet based on scratch without any additional dependencies.
33
4- You can use simple version (robonet/dotnet-scratch: latest ) if you don't need cultures and timezones or full image (robonet/dotnet-scratch: full-latest ) what include globalization libraries
4+ Available images:
5+
6+ # .NET 9
7+ | type | image |
8+ | -------- | ------- |
9+ | runtime deps | ` robonet/dotnet-scratch:runtime-deps-9 ` |
10+ | runtime deps with globalization | ` robonet/dotnet-scratch:runtime-deps-globalization-9 ` |
11+ | aspnet | ` robonet/dotnet-scratch:aspnet-9 ` |
12+ | aspnet with globalization | ` robonet/dotnet-scratch:aspnet-globalization-9 ` |
13+
14+ # .NET 8
15+ | type | image |
16+ | -------- | ------- |
17+ | runtime deps | ` robonet/dotnet-scratch:runtime-deps-8 ` |
18+ | runtime deps with globalization | ` robonet/dotnet-scratch:runtime-deps-globalization-8 ` |
19+ | aspnet | ` robonet/dotnet-scratch:aspnet-8 ` |
20+ | aspnet with globalization | ` robonet/dotnet-scratch:aspnet-globalization-8 ` |
21+
22+
23+ You can use minimal runtime deps version (` robonet/dotnet-scratch:runtime-deps-9 ` ) if you don't need cultures and timezones and include framework to image manually or use full image (` robonet/dotnet-scratch:aspnet-9 ` ) what include globalization libraries
524
625https://hub.docker.com/r/robonet/dotnet-scratch
Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/dotnet/sdk:7 .0.101 AS prepare
1+ FROM mcr.microsoft.com/dotnet/sdk:9 .0.0 AS prepare
22WORKDIR /
33
44# restore
@@ -20,7 +20,7 @@ RUN dotnet build --no-restore -c Release
2020WORKDIR /Example
2121RUN dotnet publish --no-restore -c Release -o out
2222
23- FROM robonet/dotnet-scratch:full-latest AS runtime
23+ FROM robonet/dotnet-scratch:aspnet-9 AS runtime
2424WORKDIR /app
2525COPY --from=build --chown=$USER:$USER /Example/out ./
2626ENTRYPOINT ["dotnet" , "Example.dll" ]
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >net7 .0</TargetFramework >
5+ <TargetFramework >net9 .0</TargetFramework >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <Nullable >enable</Nullable >
88 </PropertyGroup >
Original file line number Diff line number Diff line change 1- FROM mcr.microsoft.com/dotnet/sdk:7.0.101 AS prepare
1+ FROM mcr.microsoft.com/dotnet/sdk:9.0 AS prepare
22WORKDIR /
33
44# restore
@@ -19,7 +19,7 @@ RUN dotnet build --no-restore -c Release
1919WORKDIR /Example
2020RUN dotnet publish -c Release -r linux-musl-arm64 -p:PublishReadyToRun=true -p:PublishTrimmed=true -p:PublishSingleFile=true -o out
2121
22- FROM robonet/dotnet-scratch:minimal-latest AS runtime
22+ FROM robonet/dotnet-scratch:runtime-deps-9 AS runtime
2323WORKDIR /app
2424COPY --from=build --chown=$USER:$USER /Example/out ./
2525ENTRYPOINT ["./Example" ]
Original file line number Diff line number Diff line change 22
33 <PropertyGroup >
44 <OutputType >Exe</OutputType >
5- <TargetFramework >net7 .0</TargetFramework >
5+ <TargetFramework >net9 .0</TargetFramework >
66 <ImplicitUsings >enable</ImplicitUsings >
77 <Nullable >enable</Nullable >
88 </PropertyGroup >
You can’t perform that action at this time.
0 commit comments