File tree Expand file tree Collapse file tree
2.7/windows/windowsservercore
3.5/windows/windowsservercore
3.6/windows/windowsservercore
3.7-rc/windows/windowsservercore Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11FROM microsoft/windowsservercore
22
3- SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
3+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; " ]
44
55ENV PYTHON_VERSION 2.7.14
66ENV PYTHON_RELEASE 2.7.14
77
88RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}.amd64.msi' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
99 Write-Host ('Downloading {0} ...' -f $url); \
10- (New-Object System.Net.WebClient).DownloadFile( $url, 'python.msi' ) ; \
10+ Invoke-WebRequest -Uri $url -OutFile 'python.msi' ; \
1111 \
1212 Write-Host 'Installing ...' ; \
1313# https://www.python.org/download/releases/2.4/msi/
@@ -37,7 +37,8 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}.amd64.msi' -f $env
3737ENV PYTHON_PIP_VERSION 9.0.1
3838
3939RUN Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \
40- (New-Object System.Net.WebClient).DownloadFile('https://bootstrap.pypa.io/get-pip.py' , 'get-pip.py' ); \
40+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
41+ Invoke-WebRequest -Uri 'https://bootstrap.pypa.io/get-pip.py' -OutFile 'get-pip.py' ; \
4142 python get-pip.py \
4243 --disable-pip-version-check \
4344 --no-cache-dir \
Original file line number Diff line number Diff line change 66
77FROM microsoft/windowsservercore
88
9- SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
9+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; " ]
1010
1111ENV PYTHON_VERSION 3.5.4
1212ENV PYTHON_RELEASE 3.5.4
1313
1414RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
1515 Write-Host ('Downloading {0} ...' -f $url); \
16- (New-Object System.Net.WebClient).DownloadFile( $url, 'python.exe' ) ; \
16+ Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
1717 \
1818 Write-Host 'Installing ...' ; \
1919# https://docs.python.org/3.5/using/windows.html#installing-without-ui
@@ -44,7 +44,8 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env
4444ENV PYTHON_PIP_VERSION 9.0.1
4545
4646RUN Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \
47- (New-Object System.Net.WebClient).DownloadFile('https://bootstrap.pypa.io/get-pip.py' , 'get-pip.py' ); \
47+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
48+ Invoke-WebRequest -Uri 'https://bootstrap.pypa.io/get-pip.py' -OutFile 'get-pip.py' ; \
4849 python get-pip.py \
4950 --disable-pip-version-check \
5051 --no-cache-dir \
Original file line number Diff line number Diff line change 66
77FROM microsoft/windowsservercore
88
9- SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
9+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; " ]
1010
1111ENV PYTHON_VERSION 3.6.3
1212ENV PYTHON_RELEASE 3.6.3
1313
1414RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
1515 Write-Host ('Downloading {0} ...' -f $url); \
16- (New-Object System.Net.WebClient).DownloadFile( $url, ' python.exe' ) ; \
16+ Invoke-WebRequest -Uri $url -OutFile python.exe; \
1717 \
1818 Write-Host 'Installing ...' ; \
1919# https://docs.python.org/3.5/using/windows.html#installing-without-ui
@@ -44,7 +44,8 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env
4444ENV PYTHON_PIP_VERSION 9.0.1
4545
4646RUN Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \
47- (New-Object System.Net.WebClient).DownloadFile('https://bootstrap.pypa.io/get-pip.py' , 'get-pip.py' ); \
47+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
48+ Invoke-WebRequest -Uri https://bootstrap.pypa.io/get-pip.py -OutFile get-pip.py; \
4849 python get-pip.py \
4950 --disable-pip-version-check \
5051 --no-cache-dir \
Original file line number Diff line number Diff line change 66
77FROM microsoft/windowsservercore
88
9- SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
9+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; " ]
1010
1111ENV PYTHON_VERSION 3.7.0a1
1212ENV PYTHON_RELEASE 3.7.0
1313
1414RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
1515 Write-Host ('Downloading {0} ...' -f $url); \
16- (New-Object System.Net.WebClient).DownloadFile( $url, 'python.exe' ) ; \
16+ Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
1717 \
1818 Write-Host 'Installing ...' ; \
1919# https://docs.python.org/3.5/using/windows.html#installing-without-ui
@@ -44,7 +44,8 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env
4444ENV PYTHON_PIP_VERSION 9.0.1
4545
4646RUN Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \
47- (New-Object System.Net.WebClient).DownloadFile('https://bootstrap.pypa.io/get-pip.py' , 'get-pip.py' ); \
47+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
48+ Invoke-WebRequest -Uri 'https://bootstrap.pypa.io/get-pip.py' -OutFile 'get-pip.py' ; \
4849 python get-pip.py \
4950 --disable-pip-version-check \
5051 --no-cache-dir \
Original file line number Diff line number Diff line change 11FROM microsoft/windowsservercore
22
3- SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
3+ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; "]
44
55ENV PYTHON_VERSION %%PLACEHOLDER%%
66ENV PYTHON_RELEASE %%PLACEHOLDER%%
77
88RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
99 Write-Host ('Downloading {0} ...' -f $url); \
10- (New-Object System.Net.WebClient).DownloadFile( $url, 'python.exe') ; \
10+ Invoke-WebRequest -Uri $url -OutFile 'python.exe'; \
1111 \
1212 Write-Host 'Installing ...'; \
1313# https://docs.python.org/3.5/using/windows.html#installing-without-ui
@@ -38,7 +38,8 @@ RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env
3838ENV PYTHON_PIP_VERSION %%PLACEHOLDER%%
3939
4040RUN Write-Host ('Installing pip=={0} ...' -f $env:PYTHON_PIP_VERSION); \
41- (New-Object System.Net.WebClient).DownloadFile('https://bootstrap.pypa.io/get-pip.py', 'get-pip.py'); \
41+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
42+ Invoke-WebRequest -Uri 'https://bootstrap.pypa.io/get-pip.py' -OutFile 'get-pip.py'; \
4243 python get-pip.py \
4344 --disable-pip-version-check \
4445 --no-cache-dir \
You can’t perform that action at this time.
0 commit comments