Skip to content

Commit 283aa1e

Browse files
Merge pull request #115 from michaelPf85/patch-1
Cleaner way to wait for vc_redist installation to finish
2 parents 56067e4 + 5c45eab commit 283aa1e

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

php/Dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,14 @@ FROM microsoft/iis:windowsservercore
22

33
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
44

5-
ENV PHP_VERSION 7.1.0
6-
ENV PHP_SHA1 85c0215337b08f9d49c233c16475c15f17b66ac1
5+
ENV PHP_VERSION 7.1.3
6+
ENV PHP_SHA1 4000132114cecdec82c83b09aed6a962ed928e0b
77

88
WORKDIR /Users/ContainerAdministrator/Downloads
99

1010
# Visual C++ 2015 Redistributable
11-
# workaround: the .exe command completes early and does not finish the install, so added 10s sleep to the end to allow time to finish
1211
RUN Invoke-WebRequest 'https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe' -OutFile 'vc_redist.x64.exe'; \
13-
.\vc_redist.x64.exe /install /passive /norestart; \
14-
Start-Sleep -s 10; \
12+
Start-Process '.\vc_redist.x64.exe' '/install /passive /norestart' -Wait; \
1513
Remove-Item vc_redist.x64.exe;
1614

1715
# Install PHP

0 commit comments

Comments
 (0)