From 7faa1a40cff48c56dab554eb585fea58c9095487 Mon Sep 17 00:00:00 2001 From: Miguel Veloso Date: Thu, 21 Nov 2019 11:02:09 +0000 Subject: [PATCH] Add comment to Create-DockerfileSolutionRestore.ps1 script --- src/Create-DockerfileSolutionRestore.ps1 | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Create-DockerfileSolutionRestore.ps1 b/src/Create-DockerfileSolutionRestore.ps1 index 8c6714bd5..c5deb5013 100644 --- a/src/Create-DockerfileSolutionRestore.ps1 +++ b/src/Create-DockerfileSolutionRestore.ps1 @@ -4,6 +4,12 @@ param ( $outfile = "DockerfileSolutionRestore.txt" +# This script creates the $outfile file, with Dockerfile commands to restore all the packages for the solution, +# so you can insert them (by hand) into Dockerfiles right before the "COPY . ." line +# to increase build speed by optimizing the use of docker build images cache. + +# This script is only needed when adding or removing projects from the solution. + Write-Output "COPY ""$solution"" ""$solution""" > $outfile Add-Content -Path $outfile ""