Skip to content

Commit 8b1bf79

Browse files
committed
Change readme
1 parent 8a73f6c commit 8b1bf79

6 files changed

Lines changed: 26 additions & 11 deletions

File tree

.github/workflows/docker-image.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,6 @@ jobs:
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
@@ -57,7 +56,6 @@ jobs:
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
@@ -70,7 +68,6 @@ jobs:
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
@@ -83,6 +80,5 @@ jobs:
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}}

README.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,25 @@
11
# dotnet-scratch
22
Docker 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

625
https://hub.docker.com/r/robonet/dotnet-scratch

examples/Globalization/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:7.0.101 AS prepare
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0.0 AS prepare
22
WORKDIR /
33

44
#restore
@@ -20,7 +20,7 @@ RUN dotnet build --no-restore -c Release
2020
WORKDIR /Example
2121
RUN 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
2424
WORKDIR /app
2525
COPY --from=build --chown=$USER:$USER /Example/out ./
2626
ENTRYPOINT ["dotnet", "Example.dll"]

examples/Globalization/Example/Example.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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>

examples/Minimal/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM mcr.microsoft.com/dotnet/sdk:7.0.101 AS prepare
1+
FROM mcr.microsoft.com/dotnet/sdk:9.0 AS prepare
22
WORKDIR /
33

44
#restore
@@ -19,7 +19,7 @@ RUN dotnet build --no-restore -c Release
1919
WORKDIR /Example
2020
RUN 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
2323
WORKDIR /app
2424
COPY --from=build --chown=$USER:$USER /Example/out ./
2525
ENTRYPOINT ["./Example"]

examples/Minimal/Example/Example.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
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>

0 commit comments

Comments
 (0)