-
Notifications
You must be signed in to change notification settings - Fork 5.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Edit pass and zone pivots for related container content
- Loading branch information
1 parent
9b57177
commit 49d9f1f
Showing
6 changed files
with
204 additions
and
34 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
var counter = 0; | ||
var max = args.Length is not 0 ? Convert.ToInt32(args[0]) : -1; | ||
|
||
while (max is -1 || counter < max) | ||
{ | ||
Console.WriteLine($"Counter: {++counter}"); | ||
|
||
await Task.Delay(TimeSpan.FromMilliseconds(1_000)); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
FROM mcr.microsoft.com/dotnet/sdk:9.0@sha256:3fcf6f1e809c0553f9feb222369f58749af314af6f063f389cbd2f913b4ad556 AS build | ||
WORKDIR /App | ||
|
||
# Copy everything | ||
COPY . ./ | ||
# Restore as distinct layers | ||
RUN dotnet restore | ||
# Build and publish a release | ||
RUN dotnet publish -c Release -o out | ||
|
||
# Build runtime image | ||
FROM mcr.microsoft.com/dotnet/aspnet:9.0@sha256:b4bea3a52a0a77317fa93c5bbdb076623f81e3e2f201078d89914da71318b5d8 | ||
WORKDIR /App | ||
COPY --from=build /App/out . | ||
ENTRYPOINT ["dotnet", "DotNet.Docker.dll"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<OutputType>Exe</OutputType> | ||
<TargetFramework>net9.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
</PropertyGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
var counter = 0; | ||
var max = args.Length is not 0 ? Convert.ToInt32(args[0]) : -1; | ||
|
||
while (max is -1 || counter < max) | ||
{ | ||
Console.WriteLine($"Counter: {++counter}"); | ||
|
||
await Task.Delay(TimeSpan.FromMilliseconds(1_000)); | ||
} |