Skip to content

Commit a68f2c1

Browse files
committed
Merge pull request #1 from moander/dev
Avoid full rebuild every time.
2 parents a3d268b + 037ba1d commit a68f2c1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

samples/latest/HelloMvc/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
FROM microsoft/aspnet
22

3-
COPY . /app
3+
COPY project.json /app/
44
WORKDIR /app
55
RUN ["dnu", "restore"]
6+
COPY . /app
67

78
EXPOSE 5004
89
ENTRYPOINT ["dnx", "project.json", "kestrel"]

samples/latest/HelloWeb/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
11
FROM microsoft/aspnet
22

3-
COPY . /app
3+
COPY project.json /app/
44
WORKDIR /app
55
RUN ["dnu", "restore"]
6+
COPY . /app
67

78
EXPOSE 5004
89
ENTRYPOINT ["dnx", "project.json", "kestrel"]

0 commit comments

Comments
 (0)