Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions 6.9/windows/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM microsoft/windowsservercore

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]

ENV NPM_CONFIG_LOGLEVEL info
ENV NODE_VERSION 6.9.2

RUN $url = ('https://nodejs.org/dist/v{0}/node-v{0}-x64.msi' -f $env:NODE_VERSION); \
Write-Host ('Downloading {0} ...' -f $url); \
(New-Object System.Net.WebClient).DownloadFile($url, 'node.msi'); \

This comment was marked as off-topic.

\
Write-Host 'Installing ...'; \
Start-Process msiexec.exe -Wait \
-ArgumentList @( \
'/i', \
'node.msi', \
'/quiet', \
'ALLUSERS=1', \
'/passive', \
'/norestart' \
); \
\
# the installer updated PATH, so we should refresh our local value
$env:PATH = [Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine); \
\
Write-Host 'Verifying install ...'; \
Write-Host ' node --version'; node --version; \
\
Write-Host 'Removing ...'; \
Remove-Item node.msi -Force; \
\
Write-Host 'Complete.';

CMD ["node"]
34 changes: 34 additions & 0 deletions 7.3/windows/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
FROM microsoft/windowsservercore

SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]

ENV NPM_CONFIG_LOGLEVEL info
ENV NODE_VERSION 7.3.0

RUN $url = ('https://nodejs.org/dist/v{0}/node-v{0}-x64.msi' -f $env:NODE_VERSION); \
Write-Host ('Downloading {0} ...' -f $url); \
(New-Object System.Net.WebClient).DownloadFile($url, 'node.msi'); \
\
Write-Host 'Installing ...'; \
Start-Process msiexec.exe -Wait \
-ArgumentList @( \
'/i', \
'node.msi', \
'/quiet', \
'ALLUSERS=1', \
'/passive', \
'/norestart' \
); \
\
# the installer updated PATH, so we should refresh our local value
$env:PATH = [Environment]::GetEnvironmentVariable('PATH', [EnvironmentVariableTarget]::Machine); \
\
Write-Host 'Verifying install ...'; \
Write-Host ' node --version'; node --version; \
\
Write-Host 'Removing ...'; \
Remove-Item node.msi -Force; \
\
Write-Host 'Complete.';

CMD ["node"]