We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 523d580 commit bf0f1e7Copy full SHA for bf0f1e7
1 file changed
Dockerfile
@@ -2,10 +2,10 @@ ARG PS_TAG=latest
2
3
# Stage 1: fetch PSSVG on the build platform (downloads module into /out)
4
FROM --platform=$BUILDPLATFORM mcr.microsoft.com/powershell:${PS_TAG} AS modfetch
5
-RUN pwsh -NoLogo -NoProfile -NonInteractive -Command `
6
- "Set-PSRepository PSGallery -InstallationPolicy Trusted; `
7
- Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force; `
8
- Save-Module -Name PSSVG -Path /out -Force"
+RUN pwsh -NoLogo -NoProfile -NonInteractive -Command \
+ "Set-PSRepository PSGallery -InstallationPolicy Trusted; \
+ Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force; \
+ Save-Module -Name PSSVG -Path /out -Force"
9
10
# Stage 2: final runtime image
11
FROM mcr.microsoft.com/powershell:${PS_TAG}
0 commit comments