Skip to content

Instantly share code, notes, and snippets.

@hayajo
Last active August 29, 2015 14:10
Show Gist options
  • Save hayajo/8acf06b6c4637148ef8f to your computer and use it in GitHub Desktop.
Save hayajo/8acf06b6c4637148ef8f to your computer and use it in GitHub Desktop.
microsoft/aspnet を試す

microsoft/aspnet を試す

Usage

$ docker build -t $USER/aspnet_helloweb .
$ docker run -d -i -p 5004:5004 --name aspnet_helloweb $USER/aspnet_helloweb 
$ curl localhost:5004
FROM microsoft/aspnet:1.0.0-beta1
RUN apt-get -y install git
RUN mkdir /home/aspnet && cd /home/aspnet && git clone https://github.com/aspnet/Home.git
WORKDIR /home/aspnet/Home/samples/HelloWeb
RUN kpm restore
EXPOSE 5004
CMD ["k", "kestrel"]
@hayajo
Copy link
Author

hayajo commented Nov 21, 2014

docker run で -i つけないとダメっぽい

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment