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:
parent
a3d268bd13
commit
037ba1d500
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Reference in New Issue