File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed
ApiTemplate/Source/ApiTemplate
GraphQLTemplate/Source/GraphQLTemplate
OrleansTemplate/Source/OrleansTemplate.Server Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ WORKDIR /src
4343COPY "ApiTemplate.sln" "."
4444COPY "Source/ApiTemplate/*.csproj" "Source/ApiTemplate/"
4545COPY "Tests/ApiTemplate.IntegrationTest/*.csproj" "Tests/ApiTemplate.IntegrationTest/"
46- RUN dotnet restore
46+ # Run the restore and cache the packages on the host for faster subsequent builds.
47+ RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages /
48+ dotnet restore
4749COPY . .
4850# To view the files that have been copied into the container file system for debugging purposes uncomment this line
4951# RUN apk add --no-cache tree && tree
Original file line number Diff line number Diff line change @@ -43,7 +43,9 @@ WORKDIR /src
4343COPY "GraphQLTemplate.sln" "."
4444COPY "Source/GraphQLTemplate/*.csproj" "Source/GraphQLTemplate/"
4545COPY "Tests/GraphQLTemplate.IntegrationTest/*.csproj" "Tests/GraphQLTemplate.IntegrationTest/"
46- RUN dotnet restore
46+ # Run the restore and cache the packages on the host for faster subsequent builds.
47+ RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages /
48+ dotnet restore
4749COPY . .
4850# To view the files that have been copied into the container file system for debugging purposes uncomment this line
4951# RUN apk add --no-cache tree && tree
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ COPY "Source/OrleansTemplate.Client/*.csproj" "Source/OrleansTemplate.Client/"
4242COPY "Source/OrleansTemplate.Grains/*.csproj" "Source/OrleansTemplate.Grains/"
4343COPY "Source/OrleansTemplate.Server/*.csproj" "Source/OrleansTemplate.Server/"
4444COPY "Tests/OrleansTemplate.Server.IntegrationTest/*.csproj" "Tests/OrleansTemplate.Server.IntegrationTest/"
45- RUN dotnet restore
45+ # Run the restore and cache the packages on the host for faster subsequent builds.
46+ RUN --mount=type=cache,id=nuget,target=/root/.nuget/packages /
47+ dotnet restore
4648COPY . .
4749# To view the files that have been copied into the container file system for debugging purposes uncomment this line
4850# RUN apk add --no-cache tree && tree
You can’t perform that action at this time.
0 commit comments