Skip to content

Commit 9967509

Browse files
ci: move restore-layer rationale to the PR description
1 parent 3fe01a1 commit 9967509

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

Dockerfile

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@ ARG TARGETARCH
1212

1313
WORKDIR /nethermind
1414

15-
# Restore as its own layer: copy only the inputs that affect `dotnet restore` (project
16-
# files, build props, the lock file) before the sources, so a source-only change reuses
17-
# the cached restore instead of re-resolving and re-downloading every NuGet package.
1815
COPY global.json nuget.config Directory.Build.props Directory.Build.targets Directory.Packages.props ./
1916
COPY --parents src/Nethermind/**/*.csproj src/Nethermind/Directory.Build.props src/Nethermind/Directory.Build.targets src/Nethermind/Nethermind.Runner/packages.lock.json ./
2017
RUN cd src/Nethermind/Nethermind.Runner && dotnet restore --locked-mode

0 commit comments

Comments
 (0)