@@ -4,8 +4,8 @@ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPref
4
4
5
5
# PATH isn't actually set in the Docker image, so we have to set it from within the container
6
6
RUN $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)
9
9
# doing this first to share cache across versions more aggressively
10
10
11
11
ENV NODE_VERSION 0.0.0
@@ -16,9 +16,9 @@ ENV GPG_VERSION 2.4.5_20240307
16
16
ENV GPG_CHECKSUM d2ac821ceacf9409ebcdb42ae330087ada30c732981f00b356f9c2f08fac4dc1
17
17
18
18
RUN 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;
22
22
23
23
RUN @( \
24
24
"${NODE_KEYS[@]}"
@@ -45,12 +45,12 @@ COPY --from=installer C:/nodejs C:/nodejs
45
45
COPY docker-entrypoint.ps1 C:/docker-entrypoint.ps1
46
46
47
47
RUN $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;
54
54
55
55
ENTRYPOINT [ "powershell.exe" , "C:/docker-entrypoint.ps1" ]
56
56
0 commit comments