diff --git a/DockerMultiStage.csproj b/DockerMultiStage.csproj new file mode 100644 index 0000000..01d5113 --- /dev/null +++ b/DockerMultiStage.csproj @@ -0,0 +1,8 @@ + + + + Exe + netcoreapp2.2 + + + diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..a886c2d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,5 @@ +FROM microsoft/dotnet:2.2-sdk +COPY . ./docker-test +WORKDIR /docker-test/ +RUN dotnet build -c Release +ENTRYPOINT ["dotnet", "run", "-c", "Release", "--no-build"] \ No newline at end of file diff --git a/Program.cs b/Program.cs new file mode 100644 index 0000000..356715e --- /dev/null +++ b/Program.cs @@ -0,0 +1,12 @@ +using System; + +namespace DockerMultiStage +{ + class Program + { + static void Main(string[] args) + { + Console.WriteLine("Hola Mundo al Estilo Docker !!!"); + } + } +}