Avoid full rebuild every time.

I found this in a comment somewhere and tested it. It runs much smoother than the original one, but someone more experienced should review the change because I'm not sure what happends if the project contains bower/nmp config and so on.
This commit is contained in:
moander 2015-06-13 08:34:32 +00:00
parent a3d268bd13
commit 037ba1d500
2 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,9 @@
FROM microsoft/aspnet
COPY . /app
COPY project.json /app/
WORKDIR /app
RUN ["dnu", "restore"]
COPY . /app
EXPOSE 5004
ENTRYPOINT ["dnx", "project.json", "kestrel"]

View File

@ -1,8 +1,9 @@
FROM microsoft/aspnet
COPY . /app
COPY project.json /app/
WORKDIR /app
RUN ["dnu", "restore"]
COPY . /app
EXPOSE 5004
ENTRYPOINT ["dnx", "project.json", "kestrel"]