Skip to content

The purpose of this project is to demonstrate how to create and publish a simple ASP.NET Core API in an image to the Docker based on Dockerfile config.

License

Notifications You must be signed in to change notification settings

parraclaudio/DockerDemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DockerDemo

How to

Open the prompt, navigate to solution folder and execute the commands below:

Publish the project
dotnet publish -c Release -o ./app/publish
Create a Docker image based on Dockerfile
docker build -t dockerdemoimage .
Create and start a Docker container in the specified port 8080
docker run -d -p 8080:80 --name dockerdemoapi dockerdemoimage
Check the page

http://localhost:8080/swagger

About

The purpose of this project is to demonstrate how to create and publish a simple ASP.NET Core API in an image to the Docker based on Dockerfile config.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published