File tree Expand file tree Collapse file tree 5 files changed +59
-0
lines changed
4.5/windows/windowsservercore
6.4/windows/windowsservercore 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/windowsservercore
2
+
3
+ ENV NPM_CONFIG_LOGLEVEL info
4
+ ENV NODE_VERSION 4.5.0
5
+ ENV NODE_SHA256 16aab15b29e79746d1bae708f6a5dbed8ef3c87426a9408f7261163d0cda0f56
6
+
7
+ RUN powershell -Command \
8
+ (New-Object System.Net.WebClient).DownloadFile('https://nodejs.org/dist/v%NODE_VERSION%/node-v%NODE_VERSION%-win-x64.zip' , 'node.zip' ) ; \
9
+ if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_SHA256) {exit 1} ; \
10
+ Expand-Archive node.zip -DestinationPath C:\ ; \
11
+ Rename-Item 'C:\n ode-v%NODE_VERSION%-win-x64' 'C:\n odejs' ; \
12
+ New-Item '%APPDATA%\n pm' ; \
13
+ $env:PATH = 'C:\n odejs;%APPDATA%\n pm;' + $env:PATH ; \
14
+ [Environment]::SetEnvironmentVariable('PATH' , $env:PATH, [EnvironmentVariableTarget]::Machine) ; \
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.5.0-windowsservercore
2
+
3
+ RUN mkdir \a pp
4
+ WORKDIR /app
5
+
6
+ ONBUILD COPY package.json package.json
7
+ ONBUILD RUN npm install
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
+ ENV NPM_CONFIG_LOGLEVEL info
4
+ ENV NODE_VERSION 6.4.0
5
+ ENV NODE_SHA256 bb994370e43c1539e11588a86e69064459141b6984b705f1c79a1a13181193b9
6
+
7
+ RUN powershell -Command \
8
+ (New-Object System.Net.WebClient).DownloadFile('https://nodejs.org/dist/v%NODE_VERSION%/node-v%NODE_VERSION%-win-x64.zip' , 'node.zip' ) ; \
9
+ if ((Get-FileHash node.zip -Algorithm sha256).Hash -ne $env:NODE_SHA256) {exit 1} ; \
10
+ Expand-Archive node.zip -DestinationPath C:\ ; \
11
+ Rename-Item 'C:\n ode-v%NODE_VERSION%-win-x64' 'C:\n odejs' ; \
12
+ New-Item '%APPDATA%\n pm' ; \
13
+ $env:PATH = 'C:\n odejs;%APPDATA%\n pm;' + $env:PATH ; \
14
+ [Environment]::SetEnvironmentVariable('PATH' , $env:PATH, [EnvironmentVariableTarget]::Machine) ; \
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.4.0-windowsservercore
2
+
3
+ RUN mkdir \a pp
4
+ WORKDIR /app
5
+
6
+ ONBUILD COPY package.json package.json
7
+ ONBUILD RUN npm install
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.5 .0 - windowsservercore 4.5 / windows/ windowsservercore
2
+ docker build - t node:4.5 .0 - windowsservercore- onbuild 4.5 / windows/ windowsservercore/ onbuild
3
+
4
+ docker build - t node:6.4 .0 - windowsservercore 6.4 / windows/ windowsservercore
5
+ docker build - t node:6.4 .0 - windowsservercore- onbuild 6.4 / windows/ windowsservercore/ onbuild
You can’t perform that action at this time.
0 commit comments