thesaintzion / asp-dotnet-deploy

Deploy ASP.Net Core Rest API with Docker

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Deploy ASP.NET Core RestAPI With Docker

Run the app locally using docker

  1. Build the image docker build --rm -t thesaintzion/employees:latest .

  2. Confirm the image it there docker image ls | grep employees

  3. Crete a container from the Image docker create --name employees thesaintzion/employees

docker run --name employees --rm -p 5000:5000 -p 5001:5001 -e ASPNETCORE_HTTP_PORT=https://+:5001 -e ASPNETCORE_URLS=http://+:5000 thesaintzion/employees

  1. Confirm the container is there docker ps -a

  2. Start the container docker start employees

Health checks

About

Deploy ASP.Net Core Rest API with Docker


Languages

Language:HTML 47.6%Language:C# 29.1%Language:CSS 15.1%Language:Dockerfile 5.4%Language:JavaScript 2.8%