File tree Expand file tree Collapse file tree 7 files changed +92
-0
lines changed Expand file tree Collapse file tree 7 files changed +92
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM microsoft/nanoserver
2+
3+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
4+
5+ ENV NPM_CONFIG_LOGLEVEL info
6+ ENV NODE_VERSION 4.8.1
7+ ENV NODE_SHA256 edb47c31de7891ddb58d5e1024e31c91b49b4f2226cf6c3e0c41e715ee6111e4
8+
9+ RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \
10+ if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_SHA256) {exit 1} ; \
11+ Expand-Archive node.zip -DestinationPath C:\ ; \
12+ Rename-Item -Path $('C:\n ode-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\n odejs' ; \
13+ New-Item $($env:APPDATA + '\n pm' ) ; \
14+ $env:PATH = 'C:\n odejs;{0}\n pm;{1}' -f $env:APPDATA, $env:PATH ; \
15+ Set-ItemProperty -Path 'HKLM:\S YSTEM\C urrentControlSet\C ontrol\S ession Manager\E nvironment\' -Name Path -Value $env:PATH ; \
16+ Remove-Item -Path node.zip
17+
18+ CMD [ "node.exe" ]
Original file line number Diff line number Diff line change 1+ FROM node:4.8.1-nanoserver
2+
3+ RUN mkdir \a pp
4+ WORKDIR /app
5+
6+ ONBUILD COPY package.json package.json
7+ ONBUILD RUN npm install ; Remove-Item $($env:APPDATA + '\n pm-cache' ) -Force -Recurse ; Remove-Item $($env:TEMP + '\n pm-*' ) -Force -Recurse
8+ ONBUILD COPY . .
9+
10+ CMD [ "npm.cmd" , "start" ]
Original file line number Diff line number Diff line change 1+ FROM microsoft/nanoserver
2+
3+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
4+
5+ ENV NPM_CONFIG_LOGLEVEL info
6+ ENV NODE_VERSION 6.10.1
7+ ENV NODE_SHA256 28923f51691bb34dc399af4ceb567da487d7f4806aec5e6f0cfab1e6c3f2dd1c
8+
9+ RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \
10+ if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_SHA256) {exit 1} ; \
11+ Expand-Archive node.zip -DestinationPath C:\ ; \
12+ Rename-Item -Path $('C:\n ode-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\n odejs' ; \
13+ New-Item $($env:APPDATA + '\n pm' ) ; \
14+ $env:PATH = 'C:\n odejs;{0}\n pm;{1}' -f $env:APPDATA, $env:PATH ; \
15+ Set-ItemProperty -Path 'HKLM:\S YSTEM\C urrentControlSet\C ontrol\S ession Manager\E nvironment\' -Name Path -Value $env:PATH ; \
16+ Remove-Item -Path node.zip
17+
18+ CMD [ "node.exe" ]
Original file line number Diff line number Diff line change 1+ FROM node:6.10.1-nanoserver
2+
3+ RUN mkdir \a pp
4+ WORKDIR /app
5+
6+ ONBUILD COPY package.json package.json
7+ ONBUILD RUN npm install ; Remove-Item $($env:APPDATA + '\n pm-cache' ) -Force -Recurse ; Remove-Item $($env:TEMP + '\n pm-*' ) -Force -Recurse
8+ ONBUILD COPY . .
9+
10+ CMD [ "npm.cmd" , "start" ]
Original file line number Diff line number Diff line change 1+ FROM microsoft/nanoserver
2+
3+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';" ]
4+
5+ ENV NPM_CONFIG_LOGLEVEL info
6+ ENV NODE_VERSION 7.7.4
7+ ENV NODE_SHA256 dd573367cda68db3594544b973be2367c0df8fc5345402672079e6be873931cd
8+
9+ RUN Invoke-WebRequest $('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION) -OutFile 'node.zip' -UseBasicParsing ; \
10+ if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_SHA256) {exit 1} ; \
11+ Expand-Archive node.zip -DestinationPath C:\ ; \
12+ Rename-Item -Path $('C:\n ode-v{0}-win-x64' -f $env:NODE_VERSION) -NewName 'C:\n odejs' ; \
13+ New-Item $($env:APPDATA + '\n pm' ) ; \
14+ $env:PATH = 'C:\n odejs;{0}\n pm;{1}' -f $env:APPDATA, $env:PATH ; \
15+ Set-ItemProperty -Path 'HKLM:\S YSTEM\C urrentControlSet\C ontrol\S ession Manager\E nvironment\' -Name Path -Value $env:PATH ; \
16+ Remove-Item -Path node.zip
17+
18+ CMD [ "node.exe" ]
Original file line number Diff line number Diff line change 1+ FROM node:7.7.4-nanoserver
2+
3+ RUN mkdir \a pp
4+ WORKDIR /app
5+
6+ ONBUILD COPY package.json package.json
7+ ONBUILD RUN npm install ; Remove-Item $($env:APPDATA + '\n pm-cache' ) -Force -Recurse ; Remove-Item $($env:TEMP + '\n pm-*' ) -Force -Recurse
8+ ONBUILD COPY . .
9+
10+ CMD [ "npm.cmd" , "start" ]
Original file line number Diff line number Diff line change 1+ docker build -- isolation= hyperv - t node:4.8 .1 - nanoserver 4.8 / windows/ nanoserver
2+ docker build -- isolation= hyperv - t node:4.8 .1 - nanoserver- onbuild 4.8 / windows/ nanoserver/ onbuild
3+
4+ docker build -- isolation= hyperv - t node:6.10 .1 - nanoserver 6.10 / windows/ nanoserver
5+ docker build -- isolation= hyperv - t node:6.10 .1 - nanoserver- onbuild 6.10 / windows/ nanoserver/ onbuild
6+
7+ docker build -- isolation= hyperv - t node:7.7 .4 - nanoserver 7.7 / windows/ nanoserver
8+ docker build -- isolation= hyperv - t node:7.7 .4 - nanoserver- onbuild 7.7 / windows/ nanoserver/ onbuild
You can’t perform that action at this time.
0 commit comments