Table of contents:

  1. Create .NET Core application
  2. Building the Docker image
  3. Host the container on AWS EC2

In this article, I am going to show how to build a Docker image out of the ASP.NET Core Web API application and host its container in AWS EC2 instance. For this tutorial you are going to need the following requirements:

  • .NET Core SDK (I am using version .NET 5.0)
  • Docker Desktop
  • Docker Hub account
  • AWS account
Photo by Jerry Zhang on Unsplash

Create .NET Core application

First things first open your VS Code editor. Toggle your terminal with ‘Ctrl+`'. Check if you have .NET …

Marius Gaigalas

I am passionate about software development :)

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store