@@ -4,8 +4,8 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref
44
55# PATH isn't actually set in the Docker image, so we have to set it from within the container
66RUN $newPath = ('C:\Program Files (x86)\GnuPG\bin;{0}' -f $env:PATH); \
7- Write-Host ('Updating PATH: {0}' -f $newPath); \
8- [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine)
7+ Write-Host ('Updating PATH: {0}' -f $newPath); \
8+ [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine)
99# doing this first to share cache across versions more aggressively
1010
1111ENV NODE_VERSION 0.0.0
@@ -16,9 +16,9 @@ ENV GPG_VERSION 2.4.5_20240307
1616ENV GPG_CHECKSUM d2ac821ceacf9409ebcdb42ae330087ada30c732981f00b356f9c2f08fac4dc1
1717
1818RUN Invoke-WebRequest $('https://www.gnupg.org/ftp/gcrypt/binary/gnupg-w32-{0}.exe' -f $env:GPG_VERSION) -OutFile 'gpg-installer.exe'; \
19- if ((Get-FileHash gpg-installer.exe -Algorithm sha256).Hash -ne $env:GPG_CHECKSUM) { Write-Error 'GPG checksum mismatch' }; \
20- Start-Process -FilePath 'gpg-installer.exe' -ArgumentList '/S' -Wait; \
21- gpg --version;
19+ if ((Get-FileHash gpg-installer.exe -Algorithm sha256).Hash -ne $env:GPG_CHECKSUM) { Write-Error 'GPG checksum mismatch' }; \
20+ Start-Process -FilePath 'gpg-installer.exe' -ArgumentList '/S' -Wait; \
21+ gpg --version;
2222
2323RUN @( \
2424 "${NODE_KEYS[@]}"
@@ -45,12 +45,12 @@ COPY --from=installer C:/nodejs C:/nodejs
4545COPY docker-entrypoint.ps1 C:/docker-entrypoint.ps1
4646
4747RUN $newPath = ('C:\nodejs;{0}' -f $env:PATH); \
48- Write-Host ('Updating PATH: {0}' -f $newPath); \
49- [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine); \
50- # Because we need to use it in the current session
51- $env:PATH = $newPath; \
52- node --version; \
53- npm --version;
48+ Write-Host ('Updating PATH: {0}' -f $newPath); \
49+ [Environment]::SetEnvironmentVariable('PATH', $newPath, [EnvironmentVariableTarget]::Machine); \
50+ # Because we need to use it in the current session
51+ $env:PATH = $newPath; \
52+ node --version; \
53+ npm --version;
5454
5555ENTRYPOINT [ "powershell.exe" , "C:/docker-entrypoint.ps1" ]
5656
0 commit comments