Using Docker Multi Stage Builds to build an ASP.NET Core Echo Server

added by DotNetKicks
4/4/2018 2:23:03 PM

2 Kicks, 196 Views

Today I'll show you how to create a simple Echo Server with ASP.NET Core and then a Docker Image using multi-stage build: Open a PowerShell promt and run: Replace the contents of the Program.cs file with the following code: Run the folowing commands to build the application: The Echo Server will be running on: http://localhost:5000 and to test it just send any request and the server should return it back to you.