docker-node
docker-node copied to clipboard
[DNM] Add windowsservercore with MSI installers
This doesn't replace the other Windows PRs like #720, just showing an alternate using the MSI installers.
EX:
docker build .\8\windowsservercore\ -t nodejs:windowsservercore-8docker run --rm -it nodejs:windowsservercore-8 powershell
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
PS C:\> yarn --version
1.6.0
PS C:\> node --verson
C:\Program Files\nodejs\node.exe: bad option: --verson
PS C:\> node --version
v8.11.3
PS C:\> npm --version
5.6.0
PS C:\> whoami
user manager\containeradministrator
Pros:
- The GPG part isn't needed
- The MSIs setup perf counters and the Path automagially
Cons:
- This method won't work for nanoserver. I've opened up https://github.com/nodejs/build/issues/1413 to see if an APPX package can be built to support that.
/cc @LaurentGoderre @StefanScherer