2018-06-01 22:15:16 +00:00
|
|
|
FROM microsoft/windowsservercore:latest
|
2018-03-13 15:06:40 +00:00
|
|
|
|
|
|
|
ENV NODE_VERSION 7.10.1
|
|
|
|
|
2018-06-01 22:15:16 +00:00
|
|
|
RUN setx /m PATH "%PATH%;C:\nodejs"
|
2018-03-13 15:06:40 +00:00
|
|
|
|
2018-06-01 22:15:16 +00:00
|
|
|
RUN powershell -Command \
|
|
|
|
netsh interface ipv4 set subinterface 18 mtu=1460 store=persistent ; \
|
|
|
|
Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \
|
2018-03-13 15:06:40 +00:00
|
|
|
Expand-Archive node.zip -DestinationPath C:\ ; \
|
|
|
|
Rename-Item -Path $('C:\node-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\nodejs'
|