File tree Expand file tree Collapse file tree
windowsservercore-ltsc2016
windowsservercore-ltsc2016
windowsservercore-ltsc2016 Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ ENV 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+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
1011 Invoke-WebRequest -Uri $url -OutFile 'python.msi' ; \
1112 \
1213 Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ ENV 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+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
1011 Invoke-WebRequest -Uri $url -OutFile 'python.msi' ; \
1112 \
1213 Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ ENV PYTHON_RELEASE 3.6.5
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+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
1617 Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
1718 \
1819 Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ ENV PYTHON_RELEASE 3.6.5
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+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
1617 Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
1718 \
1819 Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ ENV 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+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
1617 Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
1718 \
1819 Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ ENV 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+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
1617 Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
1718 \
1819 Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ ENV 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+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
1011 Invoke-WebRequest -Uri $url -OutFile 'python.exe'; \
1112 \
1213 Write-Host 'Installing ...'; \
You can’t perform that action at this time.
0 commit comments