¿ÉÒÔ´ÓÉϼ¶Ä¿Â¼cli-samplesÖп½±´Ò»¸öNuGet.configµ½HelloMvcĿ¼ÖУ¬Èç¹ûûÓÐÕâ¸öNuGet.config ÔÚ»¹Ôpackageʱ»áĬÈϵ½.nuget/NuGet/¼ÓÔØNuGet.config¡£ÒòΪԴ²»¶Ô£¬»áµ¼ÖÂijЩpackeageÏÂÔز»µ½¡£
//¿½±´ÃüÁî cp -p /root/app/cli-samples/NuGet.Config /root/app/cli-samples/HelloMvc/NuGet.Config
5.2.2´´½¨DockerfileÎļþ
ÔÚ´´½¨imageʱ£¬.NET CLI Preview Docker ImageÌṩÁËÁ½¸ö»ù´¡dotnet imageÓÃÓڼ̳У¨ÀïÃæ×°ÔصÄÆäʵÊDz¿ÊðÁË.NET CoreµÄUbuntuϵͳ£©£¬Çø±ðÔÚÓÚËüÃǵÄDockerfile²»Í¬
dotnet:0.0.1-alphaµÄDockerfile£¬»ùÓÚbuildpack-deps:trusty-scm
dotnet:0.0.1-alpha-onbuild»ùÓÚdotnet:0.0.1-alpha£¬£¨ONBUILD <Dockerfile¹Ø¼ü×Ö> ONBUILDÖ¸¶¨µÄÃüÁîÔÚ¹¹½¨¾µÏñʱ²¢²»Ö´ÐÐ,¶øÊÇÔÚËüµÄ×Ó¾µÏñÖÐÖ´ÐУ©
ËùÒÔHelloMvcµÄDockerfile¿ÉÒÔÓÐÁ½ÖÖд·¨£¬¸÷Ñ¡ÆäÒ»
(1) »ùÓÚdotnet:0.0.1-alpha
FROM microsoft/dotnet:latest RUN mkdir -p /webapp COPY . /webapp WORKDIR /webapp RUN [, ] RUN sudo apt-get -y update \ && RUN curl -sSL https://github.com/libuv/libuv/archive/v1.8.0.tar.gz | sudo tar zxfv - -C /usr/local/src \ && cd /usr/local/src/libuv-1.8.0 \ && && sudo ./configure \ && && && && cd ~/ \ && sudo ldconfig EXPOSE 5600 ENTRYPOINT [, ]
(2)»ùÓÚdotnet:0.0.1-alpha-onbuild
¡¡