From a79dff603506dade44cac1c7fcfa55d4c3c8381e Mon Sep 17 00:00:00 2001 From: Alexander Chesser Date: Mon, 7 Dec 2015 19:00:59 -0500 Subject: [PATCH] Greatly improve rebuild times for docker images with unchanged dependencies --- templates/Dockerfile.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/templates/Dockerfile.txt b/templates/Dockerfile.txt index 7bf0d685..f560deef 100644 --- a/templates/Dockerfile.txt +++ b/templates/Dockerfile.txt @@ -1,8 +1,9 @@ <% if(!coreclr){ %>FROM microsoft/aspnet:1.0.0-rc1-final<% } %><% if(coreclr){ %>FROM microsoft/aspnet:1.0.0-rc1-final-coreclr<% } %> -COPY . /app +COPY ./project.json /app/project.json WORKDIR /app RUN ["dnu", "restore"] +COPY . /app EXPOSE 5000/tcp ENTRYPOINT ["dnx", "-p", "project.json", "web"]