File tree Expand file tree Collapse file tree 5 files changed +59
-0
lines changed Expand file tree Collapse file tree 5 files changed +59
-0
lines changed Original file line number Diff line number Diff line change 1+ FROM microsoft/nanoserver
2+
3+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
4+
5+ ENV NPM_CONFIG_LOGLEVEL info
6+ ENV NODE_VERSION 4.6.0
7+ ENV NODE_SHA256 0782bd50251c2a159fba5b874c56fb4a6680f454cc16892cee8e62d17b7d6f60
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+ [System.IO.Compression.ZipFile]::ExtractToDirectory('C:\n ode.zip' , 'C:\' ) ; \
11+ Rename-Item -Path $(' C:\n ode-v{0}-win-x64' -f $env:NODE_VERSION) -NewName ' C:\n odejs' ; \
12+ New-Item $($env:APPDATA + ' \n pm') ; \
13+ $env:PATH = ' C:\n odejs;{0}\n pm;{1}' -f $env:APPDATA, $env:PATH ; \
14+ Set-ItemProperty -Path ' HKLM:\S YSTEM\C urrentControlSet\C ontrol\S ession Manager\E nvironment\' -Name Path -Value $env:PATH ; \
15+ Remove-Item -Path node.zip
16+
17+ CMD [ "node.exe" ]
Original file line number Diff line number Diff line change 1+ FROM node:4.6.0-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';" ]
4+
5+ ENV NPM_CONFIG_LOGLEVEL info
6+ ENV NODE_VERSION 6.7.0
7+ ENV NODE_SHA256 59971f8ea9fb1ac4c55ca36303fe32a0714049cf8a10843dbb5924a5d0624659
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+ [System.IO.Compression.ZipFile]::ExtractToDirectory('C:\n ode.zip' , 'C:\' ) ; \
11+ Rename-Item -Path $(' C:\n ode-v{0}-win-x64' -f $env:NODE_VERSION) -NewName ' C:\n odejs' ; \
12+ New-Item $($env:APPDATA + ' \n pm') ; \
13+ $env:PATH = ' C:\n odejs;{0}\n pm;{1}' -f $env:APPDATA, $env:PATH ; \
14+ Set-ItemProperty -Path ' HKLM:\S YSTEM\C urrentControlSet\C ontrol\S ession Manager\E nvironment\' -Name Path -Value $env:PATH ; \
15+ Remove-Item -Path node.zip
16+
17+ CMD [ "node.exe" ]
Original file line number Diff line number Diff line change 1+ FROM node:6.7.0-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.6 .0 - nanoserver 4.6 / windows/ nanoserver
2+ docker build -- isolation= hyperv - t node:4.6 .0 - nanoserver- onbuild 4.6 / windows/ nanoserver/ onbuild
3+
4+ docker build -- isolation= hyperv - t node:6.7 .0 - nanoserver 6.7 / windows/ nanoserver
5+ docker build -- isolation= hyperv - t node:6.7 .0 - nanoserver- onbuild 6.7 / windows/ nanoserver/ onbuild
You can’t perform that action at this time.
0 commit comments