Skip to content

Commit 0f2266d

Browse files
authored
Flag UseBasicParsing is needed
It's required for the build environment, and links seem to be available anyway.
1 parent 65c24a3 commit 0f2266d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

php/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ RUN Invoke-WebRequest 'https://download.microsoft.com/download/9/3/F/93FCF1E7-E6
1010
Remove-Item vc_redist.x64.exe;
1111

1212
# Install PHP
13-
RUN $download_page = Invoke-WebRequest -Uri 'http://windows.php.net/download'; \
13+
RUN $download_page = Invoke-WebRequest -UseBasicParsing -Uri 'http://windows.php.net/download'; \
1414
$re = 'php-\d.+-nts.+x64\.zip$'; \
1515
$url = $download_page.links | ? href -match $re | % href | select -First 1; \
1616
$filename = $url.Substring(20); \

0 commit comments

Comments
 (0)