forked from vilasvarghese/docker-k8s
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathApacheDockerFile
More file actions
executable file
·24 lines (16 loc) · 1.03 KB
/
Copy pathApacheDockerFile
File metadata and controls
executable file
·24 lines (16 loc) · 1.03 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# escape=`
FROM mcr.microsoft.com/windows/servercore:ltsc2016 as download
SHELL ["powershell", "-Command", "$ErrorActionPreference = 'Stop'; $ProgressPreference = 'SilentlyContinue';"]
ENV APACHE_VERSION 2.4.29
RUN Invoke-WebRequest ('http://de.apachehaus.com/downloads/httpd-{0}-o102n-x64-vc14-r2.zip' -f $env:APACHE_VERSION) -OutFile 'apache.zip' -UseBasicParsing ; `
Expand-Archive apache.zip -DestinationPath C:\ ; `
Remove-Item -Path apache.zip
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'; `
Start-Process '.\vc_redist.x64.exe' '/install /passive /norestart' -Wait; `
Remove-Item vc_redist.x64.exe;
FROM mcr.microsoft.com/windows/servercore:ltsc2016
COPY --from=download C:\Apache24 C:\Apache24
COPY --from=download C:\windows\system32\msvcp140.dll C:\windows\system32
COPY --from=download C:\windows\system32\vcruntime140.dll C:\windows\system32
EXPOSE 80
CMD [ "C:\\Apache24\\bin\\httpd.exe" ]