Skip to content

Commit 7080f6d

Browse files
committed
first version of nginx
1 parent 13bb66a commit 7080f6d

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

windowsservercore/nginx/Dockerfile

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
FROM windowsservercore
2+
MAINTAINER xied75@gmail.com
3+
4+
ENV NGINX_VERSION 1.11.1
5+
6+
RUN setx PATH %PATH%;C:\nginx-%NGINX_VERSION%;
7+
EXPOSE 80 443
8+
9+
RUN powershell -Command \
10+
wget http://nginx.org/download/nginx-%NGINX_VERSION%.zip -outfile \nginx-%NGINX_VERSION%.zip; \
11+
Expand-Archive -Path \nginx-%NGINX_VERSION%.zip -DestinationPath /; \
12+
rm /nginx-%NGINX_VERSION%.zip
13+
14+
WORKDIR C:/nginx-$NGINX_VERSION
15+
16+
CMD c:/nginx-%NGINX_VERSION%/nginx.exe

0 commit comments

Comments
 (0)