Skip to content

Commit 3713a01

Browse files
committed
Merge pull request nginx#1 from tianon/minor-tweaks
Minor tweaks
2 parents f985f4f + d5b14ea commit 3713a01

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

Dockerfile

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,16 @@ FROM debian:wheezy
22

33
MAINTAINER NGINX Docker Maintainers "[email protected]"
44

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 -
5+
RUN apt-key adv --keyserver pgp.mit.edu --recv-keys 573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62
76
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
97

10-
# forward request logs to docker log collector
8+
ENV NGINX_VERSION 1.7.5-1~wheezy
9+
10+
RUN apt-get update && apt-get install -y nginx=${NGINX_VERSION}
11+
12+
# forward request and error logs to docker log collector
1113
RUN ln -sf /dev/stdout /var/log/nginx/access.log
14+
RUN ln -sf /dev/stderr /var/log/nginx/error.log
1215

1316
# be backwards compatible with pre-official images
1417
RUN ln -sf ../share/nginx /usr/local/nginx
@@ -18,4 +21,4 @@ VOLUME ["/etc/nginx"]
1821

1922
EXPOSE 80 443
2023

21-
CMD ["/usr/sbin/nginx", "-c", "/etc/nginx/nginx.conf", "-g", "daemon off; error_log /dev/stderr warn;"]
24+
CMD ["nginx", "-g", "daemon off;"]

0 commit comments

Comments
 (0)