docker-node icon indicating copy to clipboard operation
docker-node copied to clipboard

[DNM] Add windowsservercore with MSI installers

Open nschonni opened this issue 7 years ago • 0 comments

This doesn't replace the other Windows PRs like #720, just showing an alternate using the MSI installers.

EX:

  1. docker build .\8\windowsservercore\ -t nodejs:windowsservercore-8
  2. docker 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

nschonni avatar Jul 25 '18 03:07 nschonni