@@ -16,9 +16,12 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref
1616
1717WORKDIR C:\s rc
1818
19- # Clone LocalGov IMS — pin to main (update to specific commit SHA for reproducibility)
20- RUN git clone https://github.com/LocalGovIMS/localgov-ims.git . ; `
21- git checkout main
19+ # Download LocalGov IMS source archive (no git needed in SDK image)
20+ # Pin to main branch — update URL to a specific commit SHA for reproducibility
21+ RUN Invoke-WebRequest -Uri 'https://github.com/LocalGovIMS/localgov-ims/archive/refs/heads/main.zip' -OutFile src.zip ; `
22+ Expand-Archive src.zip -DestinationPath C:\t mp ; `
23+ Copy-Item -Path 'C:\t mp\l ocalgov-ims-main\* ' -Destination C:\s rc -Recurse -Force ; `
24+ Remove-Item src.zip, C:\t mp -Recurse -Force
2225
2326# Restore NuGet packages (all from nuget.org — no GitHub Packages needed)
2427RUN nuget restore src\L ocalGovIms.sln
@@ -98,9 +101,11 @@ ARG GITHUB_TOKEN
98101
99102WORKDIR C:\s rc
100103
101- # Clone GOV.UK Pay integration — pin to main (update to commit SHA for reproducibility)
102- RUN git clone https://github.com/LocalGovIMS/localgov-ims-integration-govukpay.git . ; `
103- git checkout main
104+ # Download GOV.UK Pay integration source archive (no git needed)
105+ RUN Invoke-WebRequest -Uri 'https://github.com/LocalGovIMS/localgov-ims-integration-govukpay/archive/refs/heads/main.zip' -OutFile src.zip ; `
106+ Expand-Archive src.zip -DestinationPath C:\t mp ; `
107+ Copy-Item -Path 'C:\t mp\l ocalgov-ims-integration-govukpay-main\* ' -Destination C:\s rc -Recurse -Force ; `
108+ Remove-Item src.zip, C:\t mp -Recurse -Force
104109
105110# Add GitHub Packages NuGet source for LocalGovIMS packages
106111RUN dotnet nuget add source "https://nuget.pkg.github.com/LocalGovIMS/index.json" `
0 commit comments