File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
33RUN apt-get update
44RUN apt-get install -y build-essential nodejs nodejs-legacy
55
6- COPY . /app
7-
86WORKDIR /app
97
8+ COPY project.json .
109RUN ["dotnet" , "restore" ]
1110
11+ COPY . /app
1212RUN ["dotnet" , "build" ]
1313
1414EXPOSE 5000/tcp
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
33RUN apt-get update
44RUN apt-get install -y build-essential nodejs nodejs-legacy
55
6- COPY . /app
7-
86WORKDIR /app
97
8+ COPY project.json .
109RUN ["dotnet" , "restore" ]
1110
11+ COPY . /app
1212RUN ["dotnet" , "build" ]
1313
1414EXPOSE 5000/tcp
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
33RUN apt-get update
44RUN apt-get install -y build-essential nodejs nodejs-legacy
55
6- COPY . /app
7-
86WORKDIR /app
97
8+ COPY project.json .
109RUN ["dotnet" , "restore" ]
1110
11+ COPY . /app
1212RUN ["dotnet" , "build" ]
1313
1414EXPOSE 5000/tcp
Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ FROM microsoft/dotnet:latest
33RUN apt-get update
44RUN apt-get install -y build-essential nodejs nodejs-legacy
55
6- COPY . /app
7-
86WORKDIR /app
97
8+ COPY project.json .
109RUN ["dotnet" , "restore" ]
1110
11+ COPY . /app
1212RUN ["dotnet" , "build" ]
1313
1414EXPOSE 5000/tcp
Original file line number Diff line number Diff line change 11FROM microsoft/dotnet:latest
22
3- COPY . /app
4-
53WORKDIR /app
64
5+ COPY project.json .
76RUN ["dotnet" , "restore" ]
87
8+ COPY . /app
99RUN ["dotnet" , "build" ]
1010
1111EXPOSE 5000/tcp
You can’t perform that action at this time.
0 commit comments