File tree 7 files changed +7
-0
lines changed
windowsservercore-ltsc2016
windowsservercore-ltsc2016
windowsservercore-ltsc2016
7 files changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ ENV PYTHON_RELEASE 2.7.14
7
7
8
8
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}.amd64.msi' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
9
9
Write-Host ('Downloading {0} ...' -f $url); \
10
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
10
11
Invoke-WebRequest -Uri $url -OutFile 'python.msi' ; \
11
12
\
12
13
Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ ENV PYTHON_RELEASE 2.7.14
7
7
8
8
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}.amd64.msi' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
9
9
Write-Host ('Downloading {0} ...' -f $url); \
10
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
10
11
Invoke-WebRequest -Uri $url -OutFile 'python.msi' ; \
11
12
\
12
13
Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ ENV PYTHON_RELEASE 3.6.5
13
13
14
14
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
15
15
Write-Host ('Downloading {0} ...' -f $url); \
16
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
16
17
Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
17
18
\
18
19
Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ ENV PYTHON_RELEASE 3.6.5
13
13
14
14
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
15
15
Write-Host ('Downloading {0} ...' -f $url); \
16
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
16
17
Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
17
18
\
18
19
Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ ENV PYTHON_RELEASE 3.7.0
13
13
14
14
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
15
15
Write-Host ('Downloading {0} ...' -f $url); \
16
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
16
17
Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
17
18
\
18
19
Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ ENV PYTHON_RELEASE 3.7.0
13
13
14
14
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
15
15
Write-Host ('Downloading {0} ...' -f $url); \
16
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
16
17
Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
17
18
\
18
19
Write-Host 'Installing ...' ; \
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ ENV PYTHON_RELEASE %%PLACEHOLDER%%
7
7
8
8
RUN $url = ('https://www.python.org/ftp/python/{0}/python-{1}-amd64.exe' -f $env:PYTHON_RELEASE, $env:PYTHON_VERSION); \
9
9
Write-Host ('Downloading {0} ...' -f $url); \
10
+ [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; \
10
11
Invoke-WebRequest -Uri $url -OutFile 'python.exe'; \
11
12
\
12
13
Write-Host 'Installing ...'; \
You can’t perform that action at this time.
0 commit comments