jornh/apachenano

By jornh

Updated about 8 years ago

httpd running on top of microsoft/nanoserver

Image

118

Apache httpd Windows x64 version 2.4 with vcruntime140.dll based on (microsoft/nanoserver)[microsoft/nanoserver]

FROM microsoft/nanoserver

LABEL Description="Apache" Vendor="Apache Software Foundation" Version="2.4.23"

ADD httpd-2.4.23-win64-VC14.zip /apache.zip
RUN powershell -Command \
	$ErrorActionPreference = 'Stop'; \
#	Invoke-WebRequest -Method Get -Uri https://www.apachelounge.com/download/VC14/binaries/httpd-2.4.23-win64-VC14.zip -OutFile c:\apache.zip ; \
	Expand-Archive -Path c:\apache.zip -DestinationPath c:\ ; \
	Remove-Item c:\apache.zip -Force

ADD vc_redist.x64.exe /

RUN powershell -Command \
	$ErrorActionPreference = 'Stop'; \
#	Invoke-WebRequest -Method Get -Uri "https://download.microsoft.com/download/9/3/F/93FCF1E7-E6A4-478B-96E7-D4B285925B00/vc_redist.x64.exe" -OutFile c:\vc_redist.x64.exe ; \
	start-Process c:\vc_redist.x64.exe -ArgumentList '/quiet' -Wait 
#	Remove-Item c:\vc_redist.x64.exe -Force

WORKDIR /Apache24/bin

ADD vcruntime140.dll /windows/System32/vcruntime140.dll
CMD /Apache24/bin/httpd.exe -w

Docker Pull Command

docker pull jornh/apachenano