OUTDATED: very early Docker image for ASP.NET vNext(5) quick start
10K+
Dockerfile for somebody wants to give a try on ASP.NET vNext on Mono.
This image is only kept for history. It's not maintained any longer and superseded by muojp/hellovnext-docker.
$ docker run -d -i -p 5000:5000 muojp/docker-hellovnext:latest
$ curl http://localhost:5000/
Hello World
this will fetch everything needed and start embedded web server.
Then, open http://localhost:5000/ will show you the "Hello World" page.
$ docker run -i -t -p 5000:5000 muojp/docker-hellovnext:latest /bin/bash
root@a376f9311b4c:~/helloworld/src/helloworldweb# pwd
/root/helloworld/src/helloworldweb
root@a376f9311b4c:~/helloworld/src/helloworldweb# cat Startup.cs
using System;
using System.Net.WebSockets;
using System.Threading.Tasks;
...
app.Run(async context =>
{
var payload = "Hello World";
context.Response.ContentLength = payload.Length;
await context.Response.WriteAsync(payload);
});
...
root@2008d85428cc:~/helloworld/src/helloworldweb# apt-get install vim
root@2008d85428cc:~/helloworld/src/helloworldweb# vim Startup.cs
Change the file as you like, and then
root@2008d85428cc:~/helloworld/src/helloworldweb# k web
to launch web server. Then, execute Ctrl+p Ctrl+q to detach from the container.
$ curl http://localhost:5000/
Hello World!!!!
$ docker run -d -i -t -p 5000:5000 muojp/docker-hellovnext:latest k kestrel
Content type
Image
Digest
sha256:954997121…
Size
383.5 MB
Last updated
almost 11 years ago
docker pull muojp/docker-hellovnext