Example .NET Core solution with docker image build from project referencing other projects. Dockerfile and other configuration written according to SoftwareDeveloper.Blog post with Docker introduction.
Feel free to ask a question using issue, create a pull request with enhancements and star repository if you find it helpful :)
From root directory (where solution file - Docker-dotnet-core-multi-project-solution.sln is stored) run Docker build command:
docker build -f Aspnetcoreapp/Dockerfile -t aspnetcoreapp .
To run container for the first time, type Docker run command:
docker run -d -p 8080:80 --name my-running-application aspnetcoreapp
To stop running container run Docker stop command:
docker stop my-running-application
To start container which was stopped, type Docker start command:
docker start my-running-application