From 61003c4cf6adba653d8ee75dfee7fa0e499d68a1 Mon Sep 17 00:00:00 2001 From: dobestan Date: Sat, 27 Sep 2014 23:50:18 +0900 Subject: [PATCH] Add "daemon off" option as default --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 06c3580..03e4edc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,7 +13,6 @@ RUN \ apt-get update && \ apt-get install -y nginx && \ rm -rf /var/lib/apt/lists/* && \ - echo "\ndaemon off;" >> /etc/nginx/nginx.conf && \ chown -R www-data:www-data /var/lib/nginx # Define mountable directories. @@ -23,7 +22,7 @@ VOLUME ["/etc/nginx/sites-enabled", "/etc/nginx/certs", "/etc/nginx/conf.d", "/v WORKDIR /etc/nginx # Define default command. -CMD ["nginx"] +CMD ["nginx", "-g", "daemon off;"] # Expose ports. EXPOSE 80