File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,11 +29,7 @@ RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f
2929 $sum = $(cat SHASUMS256.txt.asc | sls $(' node-v{0}-win-x64.zip' -f $env:NODE_VERSION)) -Split ' ' ; \
3030 if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $sum[0]) { Write-Error 'SHA256 mismatch' } ; \
3131 Expand-Archive node.zip -DestinationPath C:\ ; \
32- Rename-Item -Path $('C:\n ode-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\n odejs' ; \
33- New-Item $($env:APPDATA + '\n pm' ) ; \
34- $env:PATH = 'C:\n odejs;{0}\n pm;{1}' -f $env:APPDATA, $env:PATH ; \
35- [Environment]::SetEnvironmentVariable('PATH' , $env:PATH, [EnvironmentVariableTarget]::Machine) ; \
36- Remove-Item -Path node.zip
32+ Rename-Item -Path $('C:\n ode-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\n odejs'
3733
3834FROM microsoft/windowsservercore
3935
@@ -45,6 +41,6 @@ COPY --from=0 /nodejs /nodejs
4541
4642RUN New-Item $($env:APPDATA + '\n pm' ) ; \
4743 $env:PATH = 'C:\n odejs;{0}\n pm;{1}' -f $env:APPDATA, $env:PATH ; \
48- [Environment]::SetEnvironmentVariable('PATH' , $env:PATH, [EnvironmentVariableTarget]::Machine) ; \
44+ [Environment]::SetEnvironmentVariable('PATH' , $env:PATH, [EnvironmentVariableTarget]::Machine)
4945
5046CMD [ "node.exe" ]
You can’t perform that action at this time.
0 commit comments