Skip to content

edvlucas/docker-image-linux-docker-dotnet-watch-core-rc2-angular2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 

Repository files navigation

Includes dotnet watch for live reloading your application when a file is changed.

How to use it:

  • Create a .Net core web application. Make sure that project.json contains a reference to the dotnet watch tool:

"tools": { "Microsoft.DotNet.Watcher.Tools": { "version": "1.0.0-*", "imports": "portable-net451+win8" } }

  • Add a docker file containing

FROM sequentia/dotnet-watch-core-rc2 VOLUME /app WORKDIR /app ENV ASPNETCORE_SERVER.URLS http:https://*:2001 ENV ASPNETCORE_ENVIRONMENT Development EXPOSE 2001 ENTRYPOINT ["/startscript.sh"]

  • Build the project docker image

docker build -t MyApplication .

  • Run the application by mapping the application folder (containing project.json) to the container /app and map the listening http port (2001 in this example)

docker run -it -v %cd%:/app -p 2001:2001 MyApplication

  • The application will start and dotnet watch will executed. Any changes made to the source code outside the docker container will trigger a recompilation of the application inside the container."# docker-image-linux-docker-dotnet-watch-core-rc2-angular2"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published