From 7585d176e954c5493a64eea38dddc8dd0cb04646 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sat, 4 Mar 2017 14:32:10 -0800 Subject: [PATCH] nginx-extras Signed-off-by: Jess Frazelle --- nginx-extras/Dockerfile | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 nginx-extras/Dockerfile diff --git a/nginx-extras/Dockerfile b/nginx-extras/Dockerfile new file mode 100644 index 0000000..f664f69 --- /dev/null +++ b/nginx-extras/Dockerfile @@ -0,0 +1,18 @@ +FROM debian:stretch +MAINTAINER Jessie Frazelle + +RUN apt-get update && apt-get install -y \ + ca-certificates \ + lua-cjson \ + lua-iconv \ + nginx-extras \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + +# forward request and error logs to docker log collector +RUN ln -sf /dev/stdout /var/log/nginx/access.log \ + && ln -sf /dev/stderr /var/log/nginx/error.log + +EXPOSE 80 443 + +CMD ["nginx", "-g", "daemon off;"]