Skip to content

Commit fc39f75

Browse files
authored
Merge pull request docker-library#279 from infosiftr/more-win-tls
Python.org also now needs tls 1.2
2 parents 6003dae + 8b2f374 commit fc39f75

File tree

7 files changed

+7
-0
lines changed

7 files changed

+7
-0
lines changed

2.7/windows/windowsservercore-1709/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ENV PYTHON_RELEASE 2.7.14
77

88
RUN $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 ...'; \

2.7/windows/windowsservercore-ltsc2016/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ENV PYTHON_RELEASE 2.7.14
77

88
RUN $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 ...'; \

3.6/windows/windowsservercore-1709/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ENV PYTHON_RELEASE 3.6.5
1313

1414
RUN $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 ...'; \

3.6/windows/windowsservercore-ltsc2016/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ENV PYTHON_RELEASE 3.6.5
1313

1414
RUN $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 ...'; \

3.7-rc/windows/windowsservercore-1709/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ENV PYTHON_RELEASE 3.7.0
1313

1414
RUN $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 ...'; \

3.7-rc/windows/windowsservercore-ltsc2016/Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ENV PYTHON_RELEASE 3.7.0
1313

1414
RUN $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 ...'; \

Dockerfile-windowsservercore.template

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ ENV PYTHON_RELEASE %%PLACEHOLDER%%
77

88
RUN $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 ...'; \

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy