App just runs a loop with delay and writes contents to a file.
Program prg = new Program();
int x = 10;
var path = Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location);
StreamWriter outputFile = new StreamWriter(Path.Combine(path + "/WriteLines.txt"));
if (args != null && args.Length > 0)
x = Convert.ToInt32(args[0]);
for (int i = 0; i < x; i++)
{
prg.Func1(outputFile);
prg.Func2(outputFile);
Thread.Sleep(1000);
}
outputFile.Flush();
Environment.Exit(0);
FROM mcr.microsoft.com/dotnet/core/aspnet:3.1 AS base
WORKDIR /app
ADD publish .
ENTRYPOINT ["dotnet", "Job_Sample.dll"]
Content type
Image
Digest
Size
80.8 MB
Last updated
over 4 years ago
docker pull msanajyv/job_sample:1.0.0.4