File tree Expand file tree Collapse file tree 5 files changed +20
-15
lines changed
2.7/windows/windowsservercore
3.5/windows/windowsservercore
3.6/windows/windowsservercore
3.7-rc/windows/windowsservercore Expand file tree Collapse file tree 5 files changed +20
-15
lines changed Original file line number Diff line number Diff line change 1
1
FROM microsoft/windowsservercore
2
2
3
- SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
3
+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; " ]
4
4
5
5
ENV PYTHON_VERSION 2.7.14
6
6
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
- (New-Object System.Net.WebClient).DownloadFile( $url, 'python.msi' ) ; \
10
+ Invoke-WebRequest -Uri $url -OutFile 'python.msi' ; \
11
11
\
12
12
Write-Host 'Installing ...' ; \
13
13
# 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
37
37
ENV PYTHON_PIP_VERSION 9.0.1
38
38
39
39
RUN 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' ; \
41
42
python get-pip.py \
42
43
--disable-pip-version-check \
43
44
--no-cache-dir \
Original file line number Diff line number Diff line change 6
6
7
7
FROM microsoft/windowsservercore
8
8
9
- SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
9
+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; " ]
10
10
11
11
ENV PYTHON_VERSION 3.5.4
12
12
ENV PYTHON_RELEASE 3.5.4
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
- (New-Object System.Net.WebClient).DownloadFile( $url, 'python.exe' ) ; \
16
+ Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
17
17
\
18
18
Write-Host 'Installing ...' ; \
19
19
# 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
44
44
ENV PYTHON_PIP_VERSION 9.0.1
45
45
46
46
RUN 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' ; \
48
49
python get-pip.py \
49
50
--disable-pip-version-check \
50
51
--no-cache-dir \
Original file line number Diff line number Diff line change 6
6
7
7
FROM microsoft/windowsservercore
8
8
9
- SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
9
+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; " ]
10
10
11
11
ENV PYTHON_VERSION 3.6.3
12
12
ENV PYTHON_RELEASE 3.6.3
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
- (New-Object System.Net.WebClient).DownloadFile( $url, ' python.exe' ) ; \
16
+ Invoke-WebRequest -Uri $url -OutFile python.exe; \
17
17
\
18
18
Write-Host 'Installing ...' ; \
19
19
# 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
44
44
ENV PYTHON_PIP_VERSION 9.0.1
45
45
46
46
RUN 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; \
48
49
python get-pip.py \
49
50
--disable-pip-version-check \
50
51
--no-cache-dir \
Original file line number Diff line number Diff line change 6
6
7
7
FROM microsoft/windowsservercore
8
8
9
- SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop';" ]
9
+ SHELL ["powershell" , "-Command" , "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; " ]
10
10
11
11
ENV PYTHON_VERSION 3.7.0a1
12
12
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
- (New-Object System.Net.WebClient).DownloadFile( $url, 'python.exe' ) ; \
16
+ Invoke-WebRequest -Uri $url -OutFile 'python.exe' ; \
17
17
\
18
18
Write-Host 'Installing ...' ; \
19
19
# 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
44
44
ENV PYTHON_PIP_VERSION 9.0.1
45
45
46
46
RUN 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' ; \
48
49
python get-pip.py \
49
50
--disable-pip-version-check \
50
51
--no-cache-dir \
Original file line number Diff line number Diff line change 1
1
FROM microsoft/windowsservercore
2
2
3
- SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop';"]
3
+ SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue'; "]
4
4
5
5
ENV PYTHON_VERSION %%PLACEHOLDER%%
6
6
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
- (New-Object System.Net.WebClient).DownloadFile( $url, 'python.exe') ; \
10
+ Invoke-WebRequest -Uri $url -OutFile 'python.exe'; \
11
11
\
12
12
Write-Host 'Installing ...'; \
13
13
# 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
38
38
ENV PYTHON_PIP_VERSION %%PLACEHOLDER%%
39
39
40
40
RUN 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'; \
42
43
python get-pip.py \
43
44
--disable-pip-version-check \
44
45
--no-cache-dir \
You can’t perform that action at this time.
0 commit comments