Skip to content
This repository was archived by the owner on Apr 8, 2020. It is now read-only.

Commit a631f77

Browse files
aidansteeleSteveSandersonMS
authored andcommitted
Copy only project.json before dotnet restore in Dockerfile templates
1 parent cf1a127 commit a631f77

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

templates/Angular2Spa/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
33
RUN apt-get update
44
RUN apt-get install -y build-essential nodejs nodejs-legacy
55

6-
COPY . /app
7-
86
WORKDIR /app
97

8+
COPY project.json .
109
RUN ["dotnet", "restore"]
1110

11+
COPY . /app
1212
RUN ["dotnet", "build"]
1313

1414
EXPOSE 5000/tcp

templates/KnockoutSpa/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
33
RUN apt-get update
44
RUN apt-get install -y build-essential nodejs nodejs-legacy
55

6-
COPY . /app
7-
86
WORKDIR /app
97

8+
COPY project.json .
109
RUN ["dotnet", "restore"]
1110

11+
COPY . /app
1212
RUN ["dotnet", "build"]
1313

1414
EXPOSE 5000/tcp

templates/ReactReduxSpa/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
33
RUN apt-get update
44
RUN apt-get install -y build-essential nodejs nodejs-legacy
55

6-
COPY . /app
7-
86
WORKDIR /app
97

8+
COPY project.json .
109
RUN ["dotnet", "restore"]
1110

11+
COPY . /app
1212
RUN ["dotnet", "build"]
1313

1414
EXPOSE 5000/tcp

templates/ReactSpa/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
33
RUN apt-get update
44
RUN apt-get install -y build-essential nodejs nodejs-legacy
55

6-
COPY . /app
7-
86
WORKDIR /app
97

8+
COPY project.json .
109
RUN ["dotnet", "restore"]
1110

11+
COPY . /app
1212
RUN ["dotnet", "build"]
1313

1414
EXPOSE 5000/tcp

templates/WebApplicationBasic/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
FROM microsoft/dotnet:latest
22

3-
COPY . /app
4-
53
WORKDIR /app
64

5+
COPY project.json .
76
RUN ["dotnet", "restore"]
87

8+
COPY . /app
99
RUN ["dotnet", "build"]
1010

1111
EXPOSE 5000/tcp

0 commit comments

Comments
 (0)