Skip to content

ideafest/docker-mono-aspnetvnext

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

Note: Microsoft now provides an official Docker image: microsoft/aspnet. I'm keeping this image around in case people rely on it, but I encourage you to take a look at the official image.

mono-aspnetvnext Docker image

The GitHub repository hosts the Dockerfile used to create the image at the Docker Registry. Do not clone the repository, just follow the instructions below

The image contains everything needed to play with ASP.NET vNext projects on Mono.

Requirements

Run Docker image

To run the image, follow these steps:

  1. docker run -i -p 5000:5000 -t akoeplinger/mono-aspnetvnext /bin/bash. This downloads and runs the image with your local port 5000 forwarded to the container and connects you to a Bash shell inside the container.
  2. cd ~/helloworld/src/helloworldweb
  3. Run kpm restore to restore the necessary packages
  4. Start the test web server by running k web

The "Hello World" web application should now be running, access it by browsing to http://localhost:5000.

When you exit from the Bash shell, the container will be terminated. To map a directory from the host machine to the container, you can use the -v option, e.g. -v ~/:/hosthome will map your home directory to the /hosthome directory in the container. This is a simple way to share your own projects with the container.

About

Docker image for Mono and ASP.NET vNext

Resources

Stars

Watchers

Forks

Packages

No packages published