$ docker build -t $USER/aspnet_helloweb .
$ docker run -d -i -p 5004:5004 --name aspnet_helloweb $USER/aspnet_helloweb
$ curl localhost:5004
Last active
August 29, 2015 14:10
-
-
Save hayajo/8acf06b6c4637148ef8f to your computer and use it in GitHub Desktop.
microsoft/aspnet を試す
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
docker run で -i つけないとダメっぽい