File tree Expand file tree Collapse file tree 6 files changed +62
-1
lines changed
4.6/windows/windowsservercore
6.7/windows/windowsservercore Expand file tree Collapse file tree 6 files changed +62
-1
lines changed Original file line number Diff line number Diff line change
1
+ FROM microsoft/windowsservercore
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 (New-Object System.Net.WebClient).DownloadFile('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION, 'node.zip' ) ; \
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
+ [Environment]::SetEnvironmentVariable('PATH' , $env:PATH, [EnvironmentVariableTarget]::Machine) ; \
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.6.0
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/windowsservercore
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 (New-Object System.Net.WebClient).DownloadFile('https://nodejs.org/dist/v{0}/node-v{0}-win-x64.zip' -f $env:NODE_VERSION, 'node.zip' ) ; \
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
+ [Environment]::SetEnvironmentVariable('PATH' , $env:PATH, [EnvironmentVariableTarget]::Machine) ; \
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.7.0
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 - t node:4.6 .0 - windowsservercore 4.6 / windows/ windowsservercore
2
+ docker build - t node:4.6 .0 - windowsservercore- onbuild 4.6 / windows/ windowsservercore/ onbuild
3
+
4
+ docker build - t node:6.7 .0 - windowsservercore 6.7 / windows/ windowsservercore
5
+ docker build - t node:6.7 .0 - windowsservercore- onbuild 6.7 / windows/ windowsservercore/ onbuild
Original file line number Diff line number Diff line change 25
25
versions=( " ${versions[@]%/ } " )
26
26
27
27
for version in " ${versions[@]} " ; do
28
- if [[ " $version " == " docs" ]]; then
28
+ if [ " $version " == " docs" ] || [ " $version " == " windows " ]; then
29
29
continue
30
30
fi
31
31
You can’t perform that action at this time.
0 commit comments