mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
16 lines
615 B
Docker
16 lines
615 B
Docker
|
FROM microsoft/windowsservercore:1709
|
||
|
|
||
|
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
|
||
|
|
||
|
ENV NODE_VERSION 7.10.1
|
||
|
|
||
|
RUN netsh interface ipv4 set subinterface 'vEthernet (Ethernet)' mtu=1460 store=persistent
|
||
|
|
||
|
RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \
|
||
|
Expand-Archive node.zip -DestinationPath C:\ ; \
|
||
|
Rename-Item -Path $('C:\node-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\nodejs'
|
||
|
|
||
|
SHELL ["cmd", "/S", "/C"]
|
||
|
|
||
|
RUN setx /m PATH "%PATH%;C:\nodejs"
|