Docker Community Forums

Share and learn in the Docker community.

How to create docker image having dependencies

Hi,
I’m working on a project, which has developed in asp.net 3.5 and having different dependencies like third party dll’s and different scripts. Db used sql server. How could I create a docker images for this entire project?
thanks & regards
kanth.

I believe you should build your container with a base Microsoft ASP.NET container and place any dependencies / scripts inside. Here is a link on the dockerhub (https://hub.docker.com/_/microsoft-dotnet-framework-aspnet), make sure to pull the tag reflecting your version, ie. aspnet:3.5.

To communicate with a DB you should probably create a docker-compose.yml and add any container dependencies, like mysql, that your application needs to communicate with at runtime.