This is a very simple micro service that can be built and packaged into a docker image. You should use this micro service as a template for building your own micro services. This microservice uses the ASP.NET Core with C# implementation.
-
Build the docker image
$ docker build -t template-microservice-dotnet .
-
Run the container
$ docker run -dp 5000:5000 template-microservice-dotnet
-
Test the micro service
$ curl http://localhost:5000 Success! The Framework Training template microservice is up and running using ASP.NET Core!