Sign inSign up

training/win-nginx

By training

Updated almost 7 years ago

Image
0

408

training/win-nginx repository overview

Usage:

  • you MUST mount an nginx config file at C:\nginx\nginx-1.12.0\conf\nginx.conf, ex:
  proxy:
    image: training/win-nginx:ee2.1
    ports:
      - target: 80
        published: 8001
        mode: host      
    configs:
      - source: nginxconf
        target: C:\nginx\nginx-1.12.0\conf\nginx.conf

Dockerfile (EE 3.0):

FROM microsoft/windowsservercore
RUN powershell Invoke-webrequest http://nginx.org/download/nginx-1.12.0.zip -UseBasicParsing -outfile c:\\nginx.zip
RUN powershell Expand-Archive c:\\nginx.zip -Dest c:\\nginx ; powershell rm C:\nginx\nginx-1.12.0\conf\nginx.conf
WORKDIR c:\\nginx\\nginx-1.12.0
ENTRYPOINT powershell .\\nginx.exe

Dockerfile (EE 3.0 WS19):

FROM mcr.microsoft.com/powershell:preview-windowsservercore-1809
RUN pwsh.exe -Command Invoke-webrequest http://nginx.org/download/nginx-1.12.0.zip -UseBasicParsing -outfile c:\\nginx.zip
RUN pwsh.exe -Command Expand-Archive c:\\nginx.zip -Dest c:\\nginx ; pwsh.exe -Command rm C:\nginx\nginx-1.12.0\conf\nginx.conf
WORKDIR c:\\nginx\\nginx-1.12.0
ENTRYPOINT pwsh.exe -Command .\\nginx.exe

Tag summary

Content type

Image

Digest

Size

2.1 GB

Last updated

almost 7 years ago

docker pull training/win-nginx:ee3.0-ws19