Skip to content

Commit f985f4f

Browse files
committed
Initial commit
0 parents  commit f985f4f

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

Dockerfile

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
FROM debian:wheezy
2+
3+
MAINTAINER NGINX Docker Maintainers "[email protected]"
4+
5+
RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y -q wget
6+
RUN wget -q -O - http://nginx.org/keys/nginx_signing.key | apt-key add -
7+
RUN echo "deb http://nginx.org/packages/mainline/debian/ wheezy nginx" >> /etc/apt/sources.list
8+
RUN DEBIAN_FRONTEND=noninteractive apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y nginx
9+
10+
# forward request logs to docker log collector
11+
RUN ln -sf /dev/stdout /var/log/nginx/access.log
12+
13+
# be backwards compatible with pre-official images
14+
RUN ln -sf ../share/nginx /usr/local/nginx
15+
16+
VOLUME ["/usr/share/nginx/html"]
17+
VOLUME ["/etc/nginx"]
18+
19+
EXPOSE 80 443
20+
21+
CMD ["/usr/sbin/nginx", "-c", "/etc/nginx/nginx.conf", "-g", "daemon off; error_log /dev/stderr warn;"]

0 commit comments

Comments
 (0)