Sign inSign up

albert0i/nginx

By albert0i

•Updated over 3 years ago

Version 1.20.2 on servercore (ltsc2019)

Image
0

104

albert0i/nginx repository overview

⁠Nginx Version 1.20.2 on servercore (ltsc2019)

⁠Usage

docker run --name nginx --rm -d -p 8080:80 albert0i/nginx:1.20.2-servercore-ltsc2019

docker run --name nginx --rm -d -p 8080:80 -v c:\nginx\conf:c:\nginx\conf albert0i/nginx:1.20.2-servercore-ltsc2019

⁠Dockerfile

FROM mcr.microsoft.com/windows/servercore:ltsc2019

ENV NGINX_VER=1.20.2

USER ContainerAdministrator
RUN setx /M PATH "%PATH%;C:\nginx" &&\
    curl -OL "http://nginx.org/download/nginx-1.20.2.zip" &&\ 
    tar -xvf nginx-1.20.2.zip &&\
	ren nginx-1.20.2 nginx &&\
    del nginx-1.20.2.zip &&\
    dir 
USER ContainerUser

# In case you want to customized the image. 
#COPY conf/nginx.conf /nginx/conf/nginx.conf
#

WORKDIR /nginx

EXPOSE 80

CMD ["nginx", "-g", "daemon off;"]

EOF (2022/04/28)

Tag summary

Content type

Image

Digest

sha256:272a3cd32…

Size

2.5 GB

Last updated

over 3 years ago

docker pull albert0i/nginx:1.24.0-servercore-20H2